Class IncomingJmsMessageMetadata
- java.lang.Object
 - 
- io.smallrye.reactive.messaging.jms.IncomingJmsMessageMetadata
 
 
- 
- All Implemented Interfaces:
 JmsMessageMetadata,JmsProperties
public class IncomingJmsMessageMetadata extends Object implements JmsMessageMetadata, JmsProperties
 
- 
- 
Constructor Summary
Constructors Constructor Description IncomingJmsMessageMetadata(javax.jms.Message incoming) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> XgetBody(Class<X> c)booleangetBooleanProperty(String name)Returns the value of thebooleanproperty with the specified name.bytegetByteProperty(String name)Returns the value of thebyteproperty with the specified name.StringgetCorrelationId()intgetDeliveryMode()longgetDeliveryTime()javax.jms.DestinationgetDestination()doublegetDoubleProperty(String name)Returns the value of thedoubleproperty with the specified name.longgetExpiration()floatgetFloatProperty(String name)Returns the value of thefloatproperty with the specified name.intgetIntProperty(String name)Returns the value of theintproperty with the specified name.longgetLongProperty(String name)Returns the value of thelongproperty with the specified name.StringgetMessageId()ObjectgetObjectProperty(String name)Returns the value of the Java object property with the specified name.intgetPriority()JmsPropertiesgetProperties()Enumeration<String>getPropertyNames()Returns anEnumerationof all the property names.javax.jms.DestinationgetReplyTo()shortgetShortProperty(String name)Returns the value of theshortproperty with the specified name.StringgetStringProperty(String name)Returns the value of theStringproperty with the specified name.longgetTimestamp()StringgetType()booleanisBodyAssignableTo(Class<?> c)booleanisRedelivered()booleanpropertyExists(String name)Indicates whether a property value exists. 
 - 
 
- 
- 
Method Detail
- 
getMessageId
public String getMessageId()
 
- 
getTimestamp
public long getTimestamp()
 
- 
getCorrelationId
public String getCorrelationId()
- Specified by:
 getCorrelationIdin interfaceJmsMessageMetadata
 
- 
getReplyTo
public javax.jms.Destination getReplyTo()
- Specified by:
 getReplyToin interfaceJmsMessageMetadata
 
- 
getDestination
public javax.jms.Destination getDestination()
- Specified by:
 getDestinationin interfaceJmsMessageMetadata
 
- 
getDeliveryMode
public int getDeliveryMode()
- Specified by:
 getDeliveryModein interfaceJmsMessageMetadata
 
- 
isRedelivered
public boolean isRedelivered()
 
- 
getType
public String getType()
- Specified by:
 getTypein interfaceJmsMessageMetadata
 
- 
getProperties
public JmsProperties getProperties()
- Specified by:
 getPropertiesin interfaceJmsMessageMetadata
 
- 
getExpiration
public long getExpiration()
 
- 
getDeliveryTime
public long getDeliveryTime()
 
- 
getPriority
public int getPriority()
 
- 
propertyExists
public boolean propertyExists(String name)
Description copied from interface:JmsPropertiesIndicates whether a property value exists.- Specified by:
 propertyExistsin interfaceJmsProperties- Parameters:
 name- the name of the property to test- Returns:
 - true if the property exists
 
 
- 
getBooleanProperty
public boolean getBooleanProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of thebooleanproperty with the specified name.- Specified by:
 getBooleanPropertyin interfaceJmsProperties- Parameters:
 name- the name of thebooleanproperty- Returns:
 - the 
booleanproperty value for the specified name 
 
- 
getByteProperty
public byte getByteProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of thebyteproperty with the specified name.- Specified by:
 getBytePropertyin interfaceJmsProperties- Parameters:
 name- the name of thebyteproperty- Returns:
 - the 
byteproperty value for the specified name 
 
- 
getShortProperty
public short getShortProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of theshortproperty with the specified name.- Specified by:
 getShortPropertyin interfaceJmsProperties- Parameters:
 name- the name of theshortproperty- Returns:
 - the 
shortproperty value for the specified name 
 
- 
getIntProperty
public int getIntProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of theintproperty with the specified name.- Specified by:
 getIntPropertyin interfaceJmsProperties- Parameters:
 name- the name of theintproperty- Returns:
 - the 
intproperty value for the specified name 
 
- 
getLongProperty
public long getLongProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of thelongproperty with the specified name.- Specified by:
 getLongPropertyin interfaceJmsProperties- Parameters:
 name- the name of thelongproperty- Returns:
 - the 
longproperty value for the specified name 
 
- 
getFloatProperty
public float getFloatProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of thefloatproperty with the specified name.- Specified by:
 getFloatPropertyin interfaceJmsProperties- Parameters:
 name- the name of thefloatproperty- Returns:
 - the 
floatproperty value for the specified name 
 
- 
getDoubleProperty
public double getDoubleProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of thedoubleproperty with the specified name.- Specified by:
 getDoublePropertyin interfaceJmsProperties- Parameters:
 name- the name of thedoubleproperty- Returns:
 - the 
doubleproperty value for the specified name 
 
- 
getStringProperty
public String getStringProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of theStringproperty with the specified name.- Specified by:
 getStringPropertyin interfaceJmsProperties- Parameters:
 name- the name of theStringproperty- Returns:
 - the 
Stringproperty value for the specified name; if there is no property by this name, a null value is returned 
 
- 
getObjectProperty
public Object getObjectProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of the Java object property with the specified name.This method can be used to return, in objectified format, an object that has been stored as a property in the message with the equivalent
setObjectPropertymethod call, or its equivalent primitivesettypePropertymethod.- Specified by:
 getObjectPropertyin interfaceJmsProperties- Parameters:
 name- the name of the Java object property- Returns:
 - the Java object property value with the specified name, in objectified format (for example, if the property
         was set as an 
int, anIntegeris returned); if there is no property by this name, a null value is returned 
 
- 
getPropertyNames
public Enumeration<String> getPropertyNames()
Description copied from interface:JmsPropertiesReturns anEnumerationof all the property names.Note that Jakarta Messaging standard header fields are not considered properties and are not returned in this enumeration.
- Specified by:
 getPropertyNamesin interfaceJmsProperties- Returns:
 - an enumeration of all the names of property values
 
 
- 
getBody
public <X> X getBody(Class<X> c)
 
- 
isBodyAssignableTo
public boolean isBodyAssignableTo(Class<?> c)
 
 - 
 
 -