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> X
getBody(Class<X> c)
boolean
getBooleanProperty(String name)
Returns the value of theboolean
property with the specified name.byte
getByteProperty(String name)
Returns the value of thebyte
property with the specified name.String
getCorrelationId()
int
getDeliveryMode()
long
getDeliveryTime()
javax.jms.Destination
getDestination()
double
getDoubleProperty(String name)
Returns the value of thedouble
property with the specified name.long
getExpiration()
float
getFloatProperty(String name)
Returns the value of thefloat
property with the specified name.int
getIntProperty(String name)
Returns the value of theint
property with the specified name.long
getLongProperty(String name)
Returns the value of thelong
property with the specified name.String
getMessageId()
Object
getObjectProperty(String name)
Returns the value of the Java object property with the specified name.int
getPriority()
JmsProperties
getProperties()
Enumeration<String>
getPropertyNames()
Returns anEnumeration
of all the property names.javax.jms.Destination
getReplyTo()
short
getShortProperty(String name)
Returns the value of theshort
property with the specified name.String
getStringProperty(String name)
Returns the value of theString
property with the specified name.long
getTimestamp()
String
getType()
boolean
isBodyAssignableTo(Class<?> c)
boolean
isRedelivered()
boolean
propertyExists(String name)
Indicates whether a property value exists.
-
-
-
Method Detail
-
getMessageId
public String getMessageId()
-
getTimestamp
public long getTimestamp()
-
getCorrelationId
public String getCorrelationId()
- Specified by:
getCorrelationId
in interfaceJmsMessageMetadata
-
getReplyTo
public javax.jms.Destination getReplyTo()
- Specified by:
getReplyTo
in interfaceJmsMessageMetadata
-
getDestination
public javax.jms.Destination getDestination()
- Specified by:
getDestination
in interfaceJmsMessageMetadata
-
getDeliveryMode
public int getDeliveryMode()
- Specified by:
getDeliveryMode
in interfaceJmsMessageMetadata
-
isRedelivered
public boolean isRedelivered()
-
getType
public String getType()
- Specified by:
getType
in interfaceJmsMessageMetadata
-
getProperties
public JmsProperties getProperties()
- Specified by:
getProperties
in interfaceJmsMessageMetadata
-
getExpiration
public long getExpiration()
-
getDeliveryTime
public long getDeliveryTime()
-
getPriority
public int getPriority()
-
propertyExists
public boolean propertyExists(String name)
Description copied from interface:JmsProperties
Indicates whether a property value exists.- Specified by:
propertyExists
in 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:JmsProperties
Returns the value of theboolean
property with the specified name.- Specified by:
getBooleanProperty
in interfaceJmsProperties
- Parameters:
name
- the name of theboolean
property- Returns:
- the
boolean
property value for the specified name
-
getByteProperty
public byte getByteProperty(String name)
Description copied from interface:JmsProperties
Returns the value of thebyte
property with the specified name.- Specified by:
getByteProperty
in interfaceJmsProperties
- Parameters:
name
- the name of thebyte
property- Returns:
- the
byte
property value for the specified name
-
getShortProperty
public short getShortProperty(String name)
Description copied from interface:JmsProperties
Returns the value of theshort
property with the specified name.- Specified by:
getShortProperty
in interfaceJmsProperties
- Parameters:
name
- the name of theshort
property- Returns:
- the
short
property value for the specified name
-
getIntProperty
public int getIntProperty(String name)
Description copied from interface:JmsProperties
Returns the value of theint
property with the specified name.- Specified by:
getIntProperty
in interfaceJmsProperties
- Parameters:
name
- the name of theint
property- Returns:
- the
int
property value for the specified name
-
getLongProperty
public long getLongProperty(String name)
Description copied from interface:JmsProperties
Returns the value of thelong
property with the specified name.- Specified by:
getLongProperty
in interfaceJmsProperties
- Parameters:
name
- the name of thelong
property- Returns:
- the
long
property value for the specified name
-
getFloatProperty
public float getFloatProperty(String name)
Description copied from interface:JmsProperties
Returns the value of thefloat
property with the specified name.- Specified by:
getFloatProperty
in interfaceJmsProperties
- Parameters:
name
- the name of thefloat
property- Returns:
- the
float
property value for the specified name
-
getDoubleProperty
public double getDoubleProperty(String name)
Description copied from interface:JmsProperties
Returns the value of thedouble
property with the specified name.- Specified by:
getDoubleProperty
in interfaceJmsProperties
- Parameters:
name
- the name of thedouble
property- Returns:
- the
double
property value for the specified name
-
getStringProperty
public String getStringProperty(String name)
Description copied from interface:JmsProperties
Returns the value of theString
property with the specified name.- Specified by:
getStringProperty
in interfaceJmsProperties
- Parameters:
name
- the name of theString
property- Returns:
- the
String
property 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:JmsProperties
Returns 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
setObjectProperty
method call, or its equivalent primitivesettypeProperty
method.- Specified by:
getObjectProperty
in 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
, anInteger
is returned); if there is no property by this name, a null value is returned
-
getPropertyNames
public Enumeration<String> getPropertyNames()
Description copied from interface:JmsProperties
Returns anEnumeration
of all the property names.Note that Jakarta Messaging standard header fields are not considered properties and are not returned in this enumeration.
- Specified by:
getPropertyNames
in 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)
-
-