Class IncomingJmsMessageMetadata
java.lang.Object
io.smallrye.reactive.messaging.jms.IncomingJmsMessageMetadata
- All Implemented Interfaces:
JmsMessageMetadata,JmsProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<X> XbooleangetBooleanProperty(String name) Returns the value of thebooleanproperty with the specified name.bytegetByteProperty(String name) Returns the value of thebyteproperty with the specified name.intlongjakarta.jms.DestinationdoublegetDoubleProperty(String name) Returns the value of thedoubleproperty with the specified name.longfloatgetFloatProperty(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.getObjectProperty(String name) Returns the value of the Java object property with the specified name.intReturns anEnumerationof all the property names.jakarta.jms.DestinationshortgetShortProperty(String name) Returns the value of theshortproperty with the specified name.getStringProperty(String name) Returns the value of theStringproperty with the specified name.longgetType()booleanisBodyAssignableTo(Class<?> c) booleanbooleanpropertyExists(String name) Indicates whether a property value exists.
-
Constructor Details
-
IncomingJmsMessageMetadata
public IncomingJmsMessageMetadata(jakarta.jms.Message incoming)
-
-
Method Details
-
getMessageId
-
getTimestamp
public long getTimestamp() -
getCorrelationId
- Specified by:
getCorrelationIdin interfaceJmsMessageMetadata
-
getReplyTo
public jakarta.jms.Destination getReplyTo()- Specified by:
getReplyToin interfaceJmsMessageMetadata
-
getDestination
public jakarta.jms.Destination getDestination()- Specified by:
getDestinationin interfaceJmsMessageMetadata
-
getDeliveryMode
public int getDeliveryMode()- Specified by:
getDeliveryModein interfaceJmsMessageMetadata
-
isRedelivered
public boolean isRedelivered() -
getType
- Specified by:
getTypein interfaceJmsMessageMetadata
-
getProperties
- Specified by:
getPropertiesin interfaceJmsMessageMetadata
-
getExpiration
public long getExpiration() -
getDeliveryTime
public long getDeliveryTime() -
getPriority
public int getPriority() -
propertyExists
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
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
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
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
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
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
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
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
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
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
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
-
isBodyAssignableTo
-