Java javax.jms Message fields, constructors, methods, implement or subclass

Example usage for Java javax.jms Message fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.jms Message.

The text is from its open source code.

Implementation

javax.jms.Message has the following implementations.
Click this link to see all its implementation.

Field

intDEFAULT_DELIVERY_MODE
The message producer's default delivery mode is PERSISTENT .
intDEFAULT_PRIORITY
The message producer's default priority is 4.
longDEFAULT_TIME_TO_LIVE
The message producer's default time to live is unlimited; the message never expires.

Method

voidacknowledge()
Acknowledges all consumed messages of the session of this consumed message.
voidclearProperties()
Clears a message's properties.
TgetBody(Class c)
Returns the message body as an object of the specified type.
booleangetBooleanProperty(String name)
Returns the value of the boolean property with the specified name.
ClassgetClass()
Returns the runtime class of this Object .
doublegetDoubleProperty(String name)
Returns the value of the double property with the specified name.
floatgetFloatProperty(String name)
Returns the value of the float property with the specified name.
intgetIntProperty(String name)
Returns the value of the int property with the specified name.
StringgetJMSCorrelationID()
Gets the correlation ID for the message.
byte[]getJMSCorrelationIDAsBytes()
Gets the correlation ID as an array of bytes for the message.
intgetJMSDeliveryMode()
Gets the DeliveryMode value specified for this message.
DestinationgetJMSDestination()
Gets the Destination object for this message.
longgetJMSExpiration()
Gets the message's expiration time.
StringgetJMSMessageID()
Gets the message ID.
intgetJMSPriority()
Gets the message priority level.
booleangetJMSRedelivered()
Gets an indication of whether this message is being redelivered.
DestinationgetJMSReplyTo()
Gets the Destination object to which a reply to this message should be sent.
longgetJMSTimestamp()
Gets the message timestamp.
StringgetJMSType()
Gets the message type identifier supplied by the client when the message was sent.
longgetLongProperty(String name)
Returns the value of the long property with the specified name.
ObjectgetObjectProperty(String name)
Returns the value of the Java object property with the specified name.
EnumerationgetPropertyNames()
Returns an Enumeration of all the property names.
shortgetShortProperty(String name)
Returns the value of the short property with the specified name.
StringgetStringProperty(String name)
Returns the value of the String property with the specified name.
inthashCode()
Returns a hash code value for the object.
booleanpropertyExists(String name)
Indicates whether a property value exists.
voidsetBooleanProperty(String name, boolean value)
Sets a boolean property value with the specified name into the message.
voidsetByteProperty(String name, byte value)
Sets a byte property value with the specified name into the message.
voidsetDoubleProperty(String name, double value)
Sets a double property value with the specified name into the message.
voidsetFloatProperty(String name, float value)
Sets a float property value with the specified name into the message.
voidsetIntProperty(String name, int value)
Sets an int property value with the specified name into the message.
voidsetJMSCorrelationID(String correlationID)
Sets the correlation ID for the message.
voidsetJMSDeliveryMode(int deliveryMode)
Sets the DeliveryMode value for this message.
voidsetJMSDestination(Destination destination)
Sets the Destination object for this message.
voidsetJMSExpiration(long expiration)
Sets the message's expiration value.
voidsetJMSMessageID(String id)
Sets the message ID.
voidsetJMSPriority(int priority)
Sets the priority level for this message.
voidsetJMSRedelivered(boolean redelivered)
Specifies whether this message is being redelivered.
voidsetJMSReplyTo(Destination replyTo)
Sets the Destination object to which a reply to this message should be sent.
voidsetJMSTimestamp(long timestamp)
Sets the message timestamp.
voidsetJMSType(String type)
Sets the message type.
voidsetLongProperty(String name, long value)
Sets a long property value with the specified name into the message.
voidsetObjectProperty(String name, Object value)
Sets a Java object property value with the specified name into the message.
voidsetShortProperty(String name, short value)
Sets a short property value with the specified name into the message.
voidsetStringProperty(String name, String value)
Sets a String property value with the specified name into the message.
StringtoString()
Returns a string representation of the object.