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, setTransient
public 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.JMSException
public static String[] __getSpaceIndexedFields()
public void setRoutingIndexes(String[] indexes)
public void acknowledge() throws javax.jms.JMSException
javax.jms.JMSException
Message.acknowledge()
public void setDestinationName(String name)
public String getDestinationName()
public void clearBody() throws javax.jms.JMSException
javax.jms.JMSException
Message.clearBody()
public void setJMSCorrelationID(String value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSCorrelationID(String)
public String getJMSCorrelationID() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSCorrelationID()
public void setJMSCorrelationIDAsBytes(byte[] value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSCorrelationIDAsBytes(byte[])
public byte[] getJMSCorrelationIDAsBytes() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSCorrelationIDAsBytes()
public void setJMSDeliveryMode(int value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSDeliveryMode(int)
public int getJMSDeliveryMode() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSDeliveryMode()
public void setJMSDestination(javax.jms.Destination value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSDestination(Destination)
public javax.jms.Destination getJMSDestination() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSDestination()
public void setJMSExpiration(long value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSExpiration(long)
public long getJMSExpiration() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSExpiration()
public void setJMSMessageID(String value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSMessageID(String)
public String getJMSMessageID() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSMessageID()
public void setJMSPriority(int priority) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSPriority(int)
public int getJMSPriority() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSPriority()
public void setJMSRedelivered(boolean redelivered) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSRedelivered(boolean)
public boolean getJMSRedelivered() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSRedelivered()
public void setJMSReplyTo(javax.jms.Destination destination) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSReplyTo(Destination)
public javax.jms.Destination getJMSReplyTo() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSReplyTo()
public void setJMSTimestamp(long timestamp) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSTimestamp(long)
public long getJMSTimestamp() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSTimestamp()
public void setJMSType(String type) throws javax.jms.JMSException
javax.jms.JMSException
Message.setJMSType(String)
public String getJMSType() throws javax.jms.JMSException
javax.jms.JMSException
Message.getJMSType()
public void clearProperties() throws javax.jms.JMSException
javax.jms.JMSException
Message.clearProperties()
public Enumeration getPropertyNames() throws javax.jms.JMSException
javax.jms.JMSException
Message.getPropertyNames()
public boolean propertyExists(String name) throws javax.jms.JMSException
javax.jms.JMSException
Message.propertyExists(String)
protected void checkPropertiesReadOnly() throws javax.jms.JMSException
javax.jms.JMSException
protected final void checkBodyReadOnly() throws javax.jms.MessageNotWriteableException
javax.jms.MessageNotWriteableException
protected final void checkBodyWriteOnly() throws javax.jms.MessageNotReadableException
javax.jms.MessageNotReadableException
public boolean getBooleanProperty(String name) throws javax.jms.JMSException
javax.jms.JMSException
Message.getBooleanProperty(String)
public byte getByteProperty(String name) throws javax.jms.JMSException
javax.jms.JMSException
Message.getByteProperty(String)
public double getDoubleProperty(String name) throws javax.jms.JMSException
javax.jms.JMSException
Message.getDoubleProperty(String)
public float getFloatProperty(String name) throws javax.jms.JMSException
javax.jms.JMSException
Message.getFloatProperty(String)
public int getIntProperty(String name) throws javax.jms.JMSException
javax.jms.JMSException
Message.getIntProperty(String)
public long getLongProperty(String name) throws javax.jms.JMSException
javax.jms.JMSException
Message.getLongProperty(String)
public Object getObjectProperty(String name) throws javax.jms.JMSException
javax.jms.JMSException
Message.getObjectProperty(String)
public short getShortProperty(String name) throws javax.jms.JMSException
javax.jms.JMSException
Message.getShortProperty(String)
public String getStringProperty(String name) throws javax.jms.JMSException
javax.jms.JMSException
Message.getStringProperty(String)
public void setBooleanProperty(String name, boolean value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setBooleanProperty(String, boolean)
public void setByteProperty(String name, byte value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setByteProperty(String, byte)
public void setDoubleProperty(String name, double value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setDoubleProperty(String, double)
public void setFloatProperty(String name, float value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setFloatProperty(String, float)
public void setIntProperty(String name, int value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setIntProperty(String, int)
public void setLongProperty(String name, long value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setLongProperty(String, long)
public void setObjectProperty(String name, Object value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setObjectProperty(String, Object)
public void setShortProperty(String name, short value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setShortProperty(String, short)
public void setStringProperty(String name, String value) throws javax.jms.JMSException
javax.jms.JMSException
Message.setStringProperty(String, String)
public boolean equals(Object o)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.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 Externalizable
IOException
Externalizable.writeExternal(ObjectOutput)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Externalizable.readExternal(ObjectInput)
Copyright © GigaSpaces.