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, wait
builder
public IncomingJmsMessageMetadata(javax.jms.Message incoming)
public String getMessageId()
public long getTimestamp()
public String getCorrelationId()
getCorrelationId
in interface JmsMessageMetadata
public javax.jms.Destination getReplyTo()
getReplyTo
in interface JmsMessageMetadata
public javax.jms.Destination getDestination()
getDestination
in interface JmsMessageMetadata
public int getDeliveryMode()
getDeliveryMode
in interface JmsMessageMetadata
public boolean isRedelivered()
public String getType()
getType
in interface JmsMessageMetadata
public JmsProperties getProperties()
getProperties
in interface JmsMessageMetadata
public long getExpiration()
public long getDeliveryTime()
public int getPriority()
public boolean propertyExists(String name)
JmsProperties
propertyExists
in interface JmsProperties
name
- the name of the property to testpublic boolean getBooleanProperty(String name)
JmsProperties
boolean
property with the specified name.getBooleanProperty
in interface JmsProperties
name
- the name of the boolean
propertyboolean
property value for the specified namepublic byte getByteProperty(String name)
JmsProperties
byte
property with the specified name.getByteProperty
in interface JmsProperties
name
- the name of the byte
propertybyte
property value for the specified namepublic short getShortProperty(String name)
JmsProperties
short
property with the specified name.getShortProperty
in interface JmsProperties
name
- the name of the short
propertyshort
property value for the specified namepublic int getIntProperty(String name)
JmsProperties
int
property with the specified name.getIntProperty
in interface JmsProperties
name
- the name of the int
propertyint
property value for the specified namepublic long getLongProperty(String name)
JmsProperties
long
property with the specified name.getLongProperty
in interface JmsProperties
name
- the name of the long
propertylong
property value for the specified namepublic float getFloatProperty(String name)
JmsProperties
float
property with the specified name.getFloatProperty
in interface JmsProperties
name
- the name of the float
propertyfloat
property value for the specified namepublic double getDoubleProperty(String name)
JmsProperties
double
property with the specified name.getDoubleProperty
in interface JmsProperties
name
- the name of the double
propertydouble
property value for the specified namepublic String getStringProperty(String name)
JmsProperties
String
property with the specified name.getStringProperty
in interface JmsProperties
name
- 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 JmsProperties
name
- 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()
JmsProperties
Enumeration
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 JmsProperties
public <X> X getBody(Class<X> c)
public boolean isBodyAssignableTo(Class<?> c)
Copyright © 2018–2021 SmallRye. All rights reserved.