public class JMSEvent extends Event implements javax.jms.Message
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DELIVERY_MODE |
static int |
DEFAULT_PRIORITY |
static int |
DEFAULT_TIME_TO_LIVE |
static int |
TYPE_BOOLEAN |
static int |
TYPE_BYTE |
static int |
TYPE_DOUBLE |
static int |
TYPE_FLOAT |
static int |
TYPE_INTEGER |
static int |
TYPE_LONG |
static int |
TYPE_SHORT |
static int |
TYPE_STRING |
protected boolean |
writeable |
attribute, body, deliveryMode, ESCAPED_AMPERSAND, ESCAPED_CARRIAGE_RETURN, ESCAPED_EQUAL, ESCAPED_ITEM_SEPARATOR, ESCAPED_QUOTE, eventID, expiration, groupID, ITEM_SEPARATOR, LOG_CENTRAL, LOG_COMPACT, LOG_JMS, LOG_LOCAL, LOG_SYSLOG, logMode, timestamp
Constructor and Description |
---|
JMSEvent() |
Modifier and Type | Method and Description |
---|---|
void |
acknowledge() |
void |
clearBody() |
void |
clearProperties() |
protected void |
finalize() |
boolean |
getBooleanProperty(java.lang.String name) |
byte |
getByteProperty(java.lang.String name) |
double |
getDoubleProperty(java.lang.String name) |
float |
getFloatProperty(java.lang.String name) |
int |
getIntProperty(java.lang.String name) |
java.lang.String |
getJMSCorrelationID() |
byte[] |
getJMSCorrelationIDAsBytes() |
int |
getJMSDeliveryMode() |
javax.jms.Destination |
getJMSDestination() |
long |
getJMSExpiration() |
java.lang.String |
getJMSMessageID() |
int |
getJMSPriority() |
boolean |
getJMSRedelivered() |
javax.jms.Destination |
getJMSReplyTo() |
long |
getJMSTimestamp() |
java.lang.String |
getJMSType() |
long |
getLongProperty(java.lang.String name) |
java.lang.Object |
getObjectProperty(java.lang.String name) |
java.util.Enumeration |
getPropertyNames() |
short |
getShortProperty(java.lang.String name) |
java.lang.String |
getStringProperty(java.lang.String name) |
protected boolean |
isValid(java.lang.Object obj) |
boolean |
propertyExists(java.lang.String name) |
void |
setAckObject(java.lang.Object obj,
java.lang.reflect.Method method,
long[] state) |
void |
setBooleanProperty(java.lang.String name,
boolean x) |
void |
setByteProperty(java.lang.String name,
byte x) |
void |
setDoubleProperty(java.lang.String name,
double x) |
void |
setFloatProperty(java.lang.String name,
float x) |
void |
setIntProperty(java.lang.String name,
int x) |
void |
setJMSCorrelationID(java.lang.String id) |
void |
setJMSCorrelationIDAsBytes(byte[] id) |
void |
setJMSDeliveryMode(int d) |
void |
setJMSDestination(javax.jms.Destination dst) |
void |
setJMSExpiration(long ts) |
void |
setJMSMessageID(java.lang.String id) |
void |
setJMSPriority(int p) |
void |
setJMSRedelivered(boolean x) |
void |
setJMSReplyTo(javax.jms.Destination replyTo) |
void |
setJMSTimestamp(long ts) |
void |
setJMSType(java.lang.String type) |
void |
setLongProperty(java.lang.String name,
long x) |
void |
setObjectProperty(java.lang.String name,
java.lang.Object x) |
void |
setShortProperty(java.lang.String name,
short x) |
void |
setStringProperty(java.lang.String name,
java.lang.String x) |
attributeExists, clearAttributes, dateFormat, flush, getAttribute, getAttributeNames, getBody, getDefaultName, getExpiration, getGroupID, getHostID, getHostName, getIPAddress, getPID, getPriority, getPriorityByName, getProgramName, getTimestamp, log, parseDate, print, removeAttribute, send, setAttribute, setBody, setDefaultCategory, setDefaultName, setDefaultSite, setDefaultType, setExpiration, setGroupID, setLogDir, setLogDir, setLogDir, setPriority, setTimestamp, traceStack
protected boolean writeable
public static final int DEFAULT_DELIVERY_MODE
public static final int DEFAULT_PRIORITY
public static final int DEFAULT_TIME_TO_LIVE
public static final int TYPE_STRING
public static final int TYPE_BOOLEAN
public static final int TYPE_BYTE
public static final int TYPE_SHORT
public static final int TYPE_INTEGER
public static final int TYPE_LONG
public static final int TYPE_FLOAT
public static final int TYPE_DOUBLE
public void acknowledge() throws javax.jms.JMSException
acknowledge
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSMessageID(java.lang.String id) throws javax.jms.JMSException
setJMSMessageID
in interface javax.jms.Message
javax.jms.JMSException
public java.lang.String getJMSMessageID() throws javax.jms.JMSException
getJMSMessageID
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSCorrelationID(java.lang.String id) throws javax.jms.JMSException
setJMSCorrelationID
in interface javax.jms.Message
javax.jms.JMSException
public java.lang.String getJMSCorrelationID() throws javax.jms.JMSException
getJMSCorrelationID
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSCorrelationIDAsBytes(byte[] id) throws javax.jms.JMSException
setJMSCorrelationIDAsBytes
in interface javax.jms.Message
javax.jms.JMSException
public byte[] getJMSCorrelationIDAsBytes() throws javax.jms.JMSException
getJMSCorrelationIDAsBytes
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSTimestamp(long ts) throws javax.jms.JMSException
setJMSTimestamp
in interface javax.jms.Message
javax.jms.JMSException
public long getJMSTimestamp() throws javax.jms.JMSException
getJMSTimestamp
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSReplyTo(javax.jms.Destination replyTo) throws javax.jms.JMSException
setJMSReplyTo
in interface javax.jms.Message
javax.jms.JMSException
public javax.jms.Destination getJMSReplyTo() throws javax.jms.JMSException
getJMSReplyTo
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSDestination(javax.jms.Destination dst) throws javax.jms.JMSException
setJMSDestination
in interface javax.jms.Message
javax.jms.JMSException
public javax.jms.Destination getJMSDestination() throws javax.jms.JMSException
getJMSDestination
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSDeliveryMode(int d) throws javax.jms.JMSException
setJMSDeliveryMode
in interface javax.jms.Message
javax.jms.JMSException
public int getJMSDeliveryMode() throws javax.jms.JMSException
getJMSDeliveryMode
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSRedelivered(boolean x) throws javax.jms.JMSException
setJMSRedelivered
in interface javax.jms.Message
javax.jms.JMSException
public boolean getJMSRedelivered() throws javax.jms.JMSException
getJMSRedelivered
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSType(java.lang.String type) throws javax.jms.JMSException
setJMSType
in interface javax.jms.Message
javax.jms.JMSException
public java.lang.String getJMSType() throws javax.jms.JMSException
getJMSType
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSExpiration(long ts) throws javax.jms.JMSException
setJMSExpiration
in interface javax.jms.Message
javax.jms.JMSException
public long getJMSExpiration() throws javax.jms.JMSException
getJMSExpiration
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSPriority(int p) throws javax.jms.JMSException
setJMSPriority
in interface javax.jms.Message
javax.jms.JMSException
public int getJMSPriority() throws javax.jms.JMSException
getJMSPriority
in interface javax.jms.Message
javax.jms.JMSException
public void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
javax.jms.JMSException
public void clearProperties() throws javax.jms.JMSException
clearProperties
in interface javax.jms.Message
javax.jms.JMSException
public void setBooleanProperty(java.lang.String name, boolean x) throws javax.jms.JMSException
setBooleanProperty
in interface javax.jms.Message
javax.jms.JMSException
public boolean getBooleanProperty(java.lang.String name) throws javax.jms.JMSException
getBooleanProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setByteProperty(java.lang.String name, byte x) throws javax.jms.JMSException
setByteProperty
in interface javax.jms.Message
javax.jms.JMSException
public byte getByteProperty(java.lang.String name) throws javax.jms.JMSException
getByteProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setShortProperty(java.lang.String name, short x) throws javax.jms.JMSException
setShortProperty
in interface javax.jms.Message
javax.jms.JMSException
public short getShortProperty(java.lang.String name) throws javax.jms.JMSException
getShortProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setIntProperty(java.lang.String name, int x) throws javax.jms.JMSException
setIntProperty
in interface javax.jms.Message
javax.jms.JMSException
public int getIntProperty(java.lang.String name) throws javax.jms.JMSException
getIntProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setLongProperty(java.lang.String name, long x) throws javax.jms.JMSException
setLongProperty
in interface javax.jms.Message
javax.jms.JMSException
public long getLongProperty(java.lang.String name) throws javax.jms.JMSException
getLongProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setFloatProperty(java.lang.String name, float x) throws javax.jms.JMSException
setFloatProperty
in interface javax.jms.Message
javax.jms.JMSException
public float getFloatProperty(java.lang.String name) throws javax.jms.JMSException
getFloatProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setDoubleProperty(java.lang.String name, double x) throws javax.jms.JMSException
setDoubleProperty
in interface javax.jms.Message
javax.jms.JMSException
public double getDoubleProperty(java.lang.String name) throws javax.jms.JMSException
getDoubleProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setStringProperty(java.lang.String name, java.lang.String x) throws javax.jms.JMSException
setStringProperty
in interface javax.jms.Message
javax.jms.JMSException
public java.lang.String getStringProperty(java.lang.String name) throws javax.jms.JMSException
getStringProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setObjectProperty(java.lang.String name, java.lang.Object x) throws javax.jms.JMSException
setObjectProperty
in interface javax.jms.Message
javax.jms.JMSException
public java.lang.Object getObjectProperty(java.lang.String name) throws javax.jms.JMSException
getObjectProperty
in interface javax.jms.Message
javax.jms.JMSException
public java.util.Enumeration getPropertyNames() throws javax.jms.JMSException
getPropertyNames
in interface javax.jms.Message
javax.jms.JMSException
public boolean propertyExists(java.lang.String name) throws javax.jms.JMSException
propertyExists
in interface javax.jms.Message
javax.jms.JMSException
public void setAckObject(java.lang.Object obj, java.lang.reflect.Method method, long[] state)
protected boolean isValid(java.lang.Object obj)