public class IncomingJmsMessageMetadata extends Object implements JmsMessageMetadata, JmsProperties
| Constructor and Description |
|---|
IncomingJmsMessageMetadata(javax.jms.Message incoming) |
| Modifier and Type | Method and Description |
|---|---|
<X> X |
getBody(Class<X> c) |
boolean |
getBooleanProperty(String name)
Returns the value of the
boolean property with the specified name. |
byte |
getByteProperty(String name)
Returns the value of the
byte property with the specified name. |
String |
getCorrelationId() |
int |
getDeliveryMode() |
long |
getDeliveryTime() |
javax.jms.Destination |
getDestination() |
double |
getDoubleProperty(String name)
Returns the value of the
double property with the specified name. |
long |
getExpiration() |
float |
getFloatProperty(String name)
Returns the value of the
float property with the specified name. |
int |
getIntProperty(String name)
Returns the value of the
int property with the specified name. |
long |
getLongProperty(String name)
Returns the value of the
long 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 an
Enumeration of all the property names. |
javax.jms.Destination |
getReplyTo() |
short |
getShortProperty(String name)
Returns the value of the
short property with the specified name. |
String |
getStringProperty(String name)
Returns the value of the
String 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilderpublic IncomingJmsMessageMetadata(javax.jms.Message incoming)
public String getMessageId()
public long getTimestamp()
public String getCorrelationId()
getCorrelationId in interface JmsMessageMetadatapublic javax.jms.Destination getReplyTo()
getReplyTo in interface JmsMessageMetadatapublic javax.jms.Destination getDestination()
getDestination in interface JmsMessageMetadatapublic int getDeliveryMode()
getDeliveryMode in interface JmsMessageMetadatapublic boolean isRedelivered()
public String getType()
getType in interface JmsMessageMetadatapublic JmsProperties getProperties()
getProperties in interface JmsMessageMetadatapublic long getExpiration()
public long getDeliveryTime()
public int getPriority()
public boolean propertyExists(String name)
JmsPropertiespropertyExists in interface JmsPropertiesname - the name of the property to testpublic boolean getBooleanProperty(String name)
JmsPropertiesboolean property with the specified name.getBooleanProperty in interface JmsPropertiesname - the name of the boolean propertyboolean property value for the specified namepublic byte getByteProperty(String name)
JmsPropertiesbyte property with the specified name.getByteProperty in interface JmsPropertiesname - the name of the byte propertybyte property value for the specified namepublic short getShortProperty(String name)
JmsPropertiesshort property with the specified name.getShortProperty in interface JmsPropertiesname - the name of the short propertyshort property value for the specified namepublic int getIntProperty(String name)
JmsPropertiesint property with the specified name.getIntProperty in interface JmsPropertiesname - the name of the int propertyint property value for the specified namepublic long getLongProperty(String name)
JmsPropertieslong property with the specified name.getLongProperty in interface JmsPropertiesname - the name of the long propertylong property value for the specified namepublic float getFloatProperty(String name)
JmsPropertiesfloat property with the specified name.getFloatProperty in interface JmsPropertiesname - the name of the float propertyfloat property value for the specified namepublic double getDoubleProperty(String name)
JmsPropertiesdouble property with the specified name.getDoubleProperty in interface JmsPropertiesname - the name of the double propertydouble property value for the specified namepublic String getStringProperty(String name)
JmsPropertiesString property with the specified name.getStringProperty in interface JmsPropertiesname - the name of the String propertyString property value for the specified name; if there is no property by this name, a null value
is returnedpublic Object getObjectProperty(String name)
JmsProperties
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 primitive
settypeProperty method.
getObjectProperty in interface JmsPropertiesname - the name of the Java object propertyint, an Integer is returned); if there is no property by this name, a null value is
returnedpublic Enumeration<String> getPropertyNames()
JmsPropertiesEnumeration of all the property names.
Note that Jakarta Messaging standard header fields are not considered properties and are not returned in this enumeration.
getPropertyNames in interface JmsPropertiespublic <X> X getBody(Class<X> c)
public boolean isBodyAssignableTo(Class<?> c)
Copyright © 2018–2021 SmallRye. All rights reserved.