public class GSMessageImpl extends MetaDataEntry implements Externalizable, IReplicatable
| Modifier and Type | Field and Description |
|---|---|
Object |
Body
Message body
|
static String |
BODY_STR_NAME |
static String |
BYTES
A bytes message carries an array of bytes.
|
String |
DestinationName
Routing index.
|
protected static String[] |
indexedFields
Indexed fields
|
static String |
JMS_CORRELATION_ID |
static String |
JMS_DELIVERY_MODE |
static String |
JMS_DESTINATION |
static String |
JMS_EXPIRATION |
static String |
JMS_GSCONNECTION_KEY_NAME |
static String |
JMS_GSCONVERTER |
static String |
JMS_GSPRODUCER_KEY_PROP_NAME |
static String |
JMS_GSTTL_KEY_PROP_NAME |
static String |
JMS_MESSAGE_ID |
static String |
JMS_PRIORITY |
static String |
JMS_REDELIVERED |
static String |
JMS_REPLY_TO |
static String |
JMS_TIMESTAMP |
static String |
JMS_TYPE |
Object |
JMSCorrelationID
JMSCorrelationID header
|
Integer |
JMSDeliveryMode
JMSDeliveryMode header
|
javax.jms.Destination |
JMSDestination
JMSDestination header
|
Long |
JMSExpiration
JMSExpiration header
|
String |
JMSMessageID
JMSMessageID header
|
Integer |
JMSPriority
JMSPriority header
|
Boolean |
JMSRedelivered
JMSRedelivered header
|
javax.jms.Destination |
JMSReplyTo
JMSReplyTo header
|
Long |
JMSTimestamp
JMSTimestamp header
|
String |
JMSType
JMSType header
|
static String |
JMSX_GROUPID |
static String |
JMSX_GROUPSEQ |
static String |
JMSX_USERID |
static String |
MAP
A map message carries an hashtable.
|
static String |
OBJECT
An object message carries a serializable object.
|
Map<String,Object> |
Properties
Message properties
|
static String |
PROPERTIES_STR_NAME |
protected GSSessionImpl |
session
The session this message belongs to.
|
static String |
SIMPLE
A simple message carries a simple empty body.
|
static String |
STREAM
A stream message carries a bytes stream.
|
static String |
TEXT
A text message carries a String body.
|
| Constructor and Description |
|---|
GSMessageImpl()
Used internally only
|
GSMessageImpl(GSSessionImpl session,
String type)
Constructs a new GSMessageImpl instance.
|
__getEntryInfo, __setEntryInfo, _readExternal, _writeExternal, isFifo, isNOWriteLeaseMode, isTransient, makePersistent, makeTransient, setFifo, setNOWriteLeaseMode, setTransientpublic String DestinationName
protected transient GSSessionImpl session
public Object Body
public javax.jms.Destination JMSDestination
public Integer JMSDeliveryMode
public Long JMSExpiration
public Integer JMSPriority
public String JMSMessageID
public Long JMSTimestamp
public Object JMSCorrelationID
public javax.jms.Destination JMSReplyTo
public String JMSType
public Boolean JMSRedelivered
protected static String[] indexedFields
public static final String SIMPLE
public static final String TEXT
public static final String OBJECT
public static final String MAP
public static final String STREAM
public static final String BYTES
public static final String BODY_STR_NAME
public static final String JMS_DESTINATION
public static final String JMS_DELIVERY_MODE
public static final String JMS_EXPIRATION
public static final String JMS_PRIORITY
public static final String JMS_MESSAGE_ID
public static final String JMS_TIMESTAMP
public static final String JMS_CORRELATION_ID
public static final String JMS_REPLY_TO
public static final String JMS_TYPE
public static final String JMS_REDELIVERED
public static final String JMS_GSPRODUCER_KEY_PROP_NAME
public static final String JMS_GSTTL_KEY_PROP_NAME
public static final String JMSX_GROUPID
public static final String JMSX_GROUPSEQ
public static final String JMSX_USERID
public static final String PROPERTIES_STR_NAME
public static final String JMS_GSCONNECTION_KEY_NAME
public static final String JMS_GSCONVERTER
public GSMessageImpl()
public GSMessageImpl(GSSessionImpl session, String type) throws javax.jms.JMSException
session - The sessiontype - The message typejavax.jms.JMSExceptionpublic static String[] __getSpaceIndexedFields()
public void setRoutingIndexes(String[] indexes)
public void acknowledge()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.acknowledge()public void setDestinationName(String name)
public String getDestinationName()
public void clearBody()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.clearBody()public void setJMSCorrelationID(String value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSCorrelationID(String)public String getJMSCorrelationID() throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSCorrelationID()public void setJMSCorrelationIDAsBytes(byte[] value)
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSCorrelationIDAsBytes(byte[])public byte[] getJMSCorrelationIDAsBytes()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSCorrelationIDAsBytes()public void setJMSDeliveryMode(int value)
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSDeliveryMode(int)public int getJMSDeliveryMode()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSDeliveryMode()public void setJMSDestination(javax.jms.Destination value)
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSDestination(Destination)public javax.jms.Destination getJMSDestination()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSDestination()public void setJMSExpiration(long value)
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSExpiration(long)public long getJMSExpiration()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSExpiration()public void setJMSMessageID(String value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSMessageID(String)public String getJMSMessageID() throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSMessageID()public void setJMSPriority(int priority)
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSPriority(int)public int getJMSPriority()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSPriority()public void setJMSRedelivered(boolean redelivered)
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSRedelivered(boolean)public boolean getJMSRedelivered()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSRedelivered()public void setJMSReplyTo(javax.jms.Destination destination)
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSReplyTo(Destination)public javax.jms.Destination getJMSReplyTo()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSReplyTo()public void setJMSTimestamp(long timestamp)
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSTimestamp(long)public long getJMSTimestamp()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSTimestamp()public void setJMSType(String type) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setJMSType(String)public String getJMSType() throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getJMSType()public void clearProperties()
throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.clearProperties()public Enumeration getPropertyNames() throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getPropertyNames()public boolean propertyExists(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.propertyExists(String)protected void checkPropertiesReadOnly()
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected final void checkBodyReadOnly()
throws javax.jms.MessageNotWriteableException
javax.jms.MessageNotWriteableExceptionprotected final void checkBodyWriteOnly()
throws javax.jms.MessageNotReadableException
javax.jms.MessageNotReadableExceptionpublic boolean getBooleanProperty(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getBooleanProperty(String)public byte getByteProperty(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getByteProperty(String)public double getDoubleProperty(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getDoubleProperty(String)public float getFloatProperty(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getFloatProperty(String)public int getIntProperty(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getIntProperty(String)public long getLongProperty(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getLongProperty(String)public Object getObjectProperty(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getObjectProperty(String)public short getShortProperty(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getShortProperty(String)public String getStringProperty(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.getStringProperty(String)public void setBooleanProperty(String name, boolean value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setBooleanProperty(String, boolean)public void setByteProperty(String name, byte value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setByteProperty(String, byte)public void setDoubleProperty(String name, double value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setDoubleProperty(String, double)public void setFloatProperty(String name, float value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setFloatProperty(String, float)public void setIntProperty(String name, int value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setIntProperty(String, int)public void setLongProperty(String name, long value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setLongProperty(String, long)public void setObjectProperty(String name, Object value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setObjectProperty(String, Object)public void setShortProperty(String name, short value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setShortProperty(String, short)public void setStringProperty(String name, String value) throws javax.jms.JMSException
javax.jms.JMSExceptionMessage.setStringProperty(String, String)public boolean equals(Object o)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()protected void copyTo(GSMessageImpl dup)
dup - the message to copy into.protected Object cloneObject(Object obj)
protected Object cloneBody()
public void setProperties(HashMap<String,Object> props)
props - the properties HashMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionExternalizable.writeExternal(ObjectOutput)public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionExternalizable.readExternal(ObjectInput)Copyright © GigaSpaces.