| |
|
| java.lang.Object org.jboss.mq.SpyMessage
All known Subclasses: org.jboss.mq.SpyBytesMessage, org.jboss.mq.SpyTextMessage, org.jboss.mq.SpyStreamMessage, org.jboss.mq.SpyObjectMessage, org.jboss.mq.SpyMapMessage,
SpyMessage | public class SpyMessage implements Serializable,Message,Comparable,Cloneable,Externalizable(Code) | | This class implements javax.jms.Message
author: Norbert Lataille (Norbert.Lataille@m4x.org) author: Hiram Chirino (Cojonudo14@hotmail.com) author: David Maplesden (David.Maplesden@orion.co.nz) author: Adrian Brock version: $Revision: 57198 $ |
Inner Class :public static class Header | |
Method Summary | |
public void | acknowledge() | void | checkProperty(String name, Object value) | public void | clearBody() | void | clearMessage() | public void | clearProperties() | public int | compareTo(Object o) | public void | copyProps(SpyMessage original) | public void | createAcknowledgementRequest(int subscriptionId) | public void | doAcknowledge() | public AcknowledgementRequest | getAcknowledgementRequest(boolean isAck) | public boolean | getBooleanProperty(String name) | public byte | getByteProperty(String name) | public double | getDoubleProperty(String name) | public float | getFloatProperty(String name) | public int | getIntProperty(String name) | public String | getJMSCorrelationID() | public byte[] | getJMSCorrelationIDAsBytes() | public int | getJMSDeliveryMode() | public Destination | getJMSDestination() | public long | getJMSExpiration() | public String | getJMSMessageID() | public int | getJMSPriority() | public boolean | getJMSRedelivered() | public Destination | getJMSReplyTo() | public long | getJMSTimestamp() | public String | getJMSType() | public long | getLongProperty(String name) | public Object | getObjectProperty(String name) | public Enumeration | getPropertyNames() | public short | getShortProperty(String name) | public String | getStringProperty(String name) | public boolean | isOutdated() | public SpyMessage | myClone() | public boolean | propertyExists(String name) | public void | readExternal(ObjectInput in) | public static SpyMessage | readMessage(ObjectInput in) | public void | setBooleanProperty(String name, boolean value) | public void | setByteProperty(String name, byte value) | public void | setDoubleProperty(String name, double value) | public void | setFloatProperty(String name, float value) | public void | setIntProperty(String name, int value) | public void | setJMSCorrelationID(String correlationID) | public void | setJMSCorrelationIDAsBytes(byte[] correlationID) | public void | setJMSDeliveryMode(int deliveryMode) | public void | setJMSDestination(Destination destination) | public void | setJMSExpiration(long expiration) | public void | setJMSMessageID(String id) | public void | setJMSPriority(int priority) | public void | setJMSRedelivered(boolean redelivered) | public void | setJMSReplyTo(Destination replyTo) | public void | setJMSTimestamp(long timestamp) | public void | setJMSType(String type) | public void | setLongProperty(String name, long value) | public void | setObjectProperty(String name, Object value) | public void | setReadOnlyMode() | public void | setShortProperty(String name, short value) | public void | setStringProperty(String name, String value) | public String | toString() | public void | writeExternal(ObjectOutput out) | public static void | writeMessage(SpyMessage message, ObjectOutput out) |
BOOLEAN | final protected static int BOOLEAN(Code) | | A boolean property
|
BYTE | final protected static int BYTE(Code) | | A byte property
|
BYTES_MESS | final protected static byte BYTES_MESS(Code) | | An bytes message
|
DOUBLE | final protected static int DOUBLE(Code) | | A double property
|
ENCAP_MESS | final protected static byte ENCAP_MESS(Code) | | An encapsulated message
|
FLOAT | final protected static int FLOAT(Code) | | A float property
|
INT | final protected static int INT(Code) | | An integer property
|
LONG | final protected static int LONG(Code) | | A long property
|
MAP_MESS | final protected static byte MAP_MESS(Code) | | A map message
|
NULL | final protected static int NULL(Code) | | A null property
|
OBJECT | final protected static int OBJECT(Code) | | An object property
|
OBJECT_MESS | final protected static byte OBJECT_MESS(Code) | | An object message
|
PROPERTY_DELIVERY_COUNT | final public static String PROPERTY_DELIVERY_COUNT(Code) | | Standard property for delivery count
|
PROPERTY_ORIG_DESTINATION | final public static String PROPERTY_ORIG_DESTINATION(Code) | | JBoss-vendor property name holding original destination.
|
PROPERTY_ORIG_EXPIRATION | final public static String PROPERTY_ORIG_EXPIRATION(Code) | | JBoss-vendor property name holding original expiration value.
|
PROPERTY_ORIG_MESSAGEID | final public static String PROPERTY_ORIG_MESSAGEID(Code) | | JBoss-vendor property name holding original message ID value.
|
PROPERTY_REDELIVERY_COUNT | final public static String PROPERTY_REDELIVERY_COUNT(Code) | | JBoss-vendor specific property for getting the count of redelivery
attempts of a message.
|
PROPERTY_REDELIVERY_DELAY | final public static String PROPERTY_REDELIVERY_DELAY(Code) | | JBoss-vendor specific property specifying redelivery delay of a message.
The message will be rescheduled for delivery from the time at which it
was unacknowledged, plus the given period.
|
PROPERTY_REDELIVERY_LIMIT | final public static String PROPERTY_REDELIVERY_LIMIT(Code) | | JBoss-vendor specific property specifying the limit of redelivery
attempts of a message. The message will be redelivered a given number of
times. If not set, the container default is used.
|
PROPERTY_SCHEDULED_DELIVERY | final public static String PROPERTY_SCHEDULED_DELIVERY(Code) | | JBoss-vendor specific property for scheduling a JMS message. In
milliseconds since January 1, 1970.
|
SHORT | final protected static int SHORT(Code) | | A short property
|
SPY_MESS | final protected static byte SPY_MESS(Code) | | A plain message
|
STREAM_MESS | final protected static byte STREAM_MESS(Code) | | A stream message
|
STRING | final protected static int STRING(Code) | | A string property
|
TEXT_MESS | final protected static byte TEXT_MESS(Code) | | A text message
|
header | public Header header(Code) | | The message header
|
acknowledge | public void acknowledge() throws JMSException(Code) | | Acknowledge a message
throws: JMSException - for any error |
checkProperty | void checkProperty(String name, Object value) throws JMSException(Code) | | Check a property is valid
Parameters: name - the name Parameters: value - the value throws: JMSException - for any error |
clearBody | public void clearBody() throws JMSException(Code) | | Clear the message body
throws: JMSException - for any error |
clearMessage | void clearMessage() throws JMSException(Code) | | Clear a message
throws: JMSException - for any error |
clearProperties | public void clearProperties() throws JMSException(Code) | | |
copyProps | public void copyProps(SpyMessage original) throws JMSException(Code) | | Copy the properties
Parameters: original - the message with original properties throws: JMSException - for any error |
createAcknowledgementRequest | public void createAcknowledgementRequest(int subscriptionId)(Code) | | Create an acknowledgement request for the message
|
doAcknowledge | public void doAcknowledge() throws JMSException(Code) | | Actually acknowledge a message
throws: JMSException - for any error |
getAcknowledgementRequest | public AcknowledgementRequest getAcknowledgementRequest(boolean isAck) throws JMSException(Code) | | Get an acknowledgement request for the message
Parameters: isAck - true for an ack, false for a nack throws: JMSException - for any error |
getBooleanProperty | public boolean getBooleanProperty(String name) throws JMSException(Code) | | |
getByteProperty | public byte getByteProperty(String name) throws JMSException(Code) | | |
getDoubleProperty | public double getDoubleProperty(String name) throws JMSException(Code) | | |
getFloatProperty | public float getFloatProperty(String name) throws JMSException(Code) | | |
getIntProperty | public int getIntProperty(String name) throws JMSException(Code) | | |
getJMSCorrelationID | public String getJMSCorrelationID() throws JMSException(Code) | | |
getJMSCorrelationIDAsBytes | public byte[] getJMSCorrelationIDAsBytes() throws JMSException(Code) | | |
getJMSDeliveryMode | public int getJMSDeliveryMode()(Code) | | |
getJMSDestination | public Destination getJMSDestination()(Code) | | |
getJMSExpiration | public long getJMSExpiration()(Code) | | |
getJMSPriority | public int getJMSPriority()(Code) | | |
getJMSRedelivered | public boolean getJMSRedelivered()(Code) | | |
getJMSReplyTo | public Destination getJMSReplyTo()(Code) | | |
getJMSTimestamp | public long getJMSTimestamp()(Code) | | |
getLongProperty | public long getLongProperty(String name) throws JMSException(Code) | | |
getShortProperty | public short getShortProperty(String name) throws JMSException(Code) | | |
isOutdated | public boolean isOutdated()(Code) | | Test whether a message has expired
true when expired false otherwise |
myClone | public SpyMessage myClone() throws JMSException(Code) | | Clone the message
the cloned message throws: JMSException - for any error |
propertyExists | public boolean propertyExists(String name) throws JMSException(Code) | | |
setBooleanProperty | public void setBooleanProperty(String name, boolean value) throws JMSException(Code) | | |
setByteProperty | public void setByteProperty(String name, byte value) throws JMSException(Code) | | |
setDoubleProperty | public void setDoubleProperty(String name, double value) throws JMSException(Code) | | |
setFloatProperty | public void setFloatProperty(String name, float value) throws JMSException(Code) | | |
setIntProperty | public void setIntProperty(String name, int value) throws JMSException(Code) | | |
setJMSCorrelationID | public void setJMSCorrelationID(String correlationID) throws JMSException(Code) | | |
setJMSCorrelationIDAsBytes | public void setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException(Code) | | |
setJMSDeliveryMode | public void setJMSDeliveryMode(int deliveryMode) throws JMSException(Code) | | |
setJMSDestination | public void setJMSDestination(Destination destination) throws JMSException(Code) | | |
setJMSExpiration | public void setJMSExpiration(long expiration) throws JMSException(Code) | | |
setJMSMessageID | public void setJMSMessageID(String id) throws JMSException(Code) | | |
setJMSPriority | public void setJMSPriority(int priority) throws JMSException(Code) | | |
setJMSRedelivered | public void setJMSRedelivered(boolean redelivered) throws JMSException(Code) | | |
setJMSReplyTo | public void setJMSReplyTo(Destination replyTo) throws JMSException(Code) | | |
setJMSTimestamp | public void setJMSTimestamp(long timestamp) throws JMSException(Code) | | |
setJMSType | public void setJMSType(String type) throws JMSException(Code) | | |
setLongProperty | public void setLongProperty(String name, long value) throws JMSException(Code) | | |
setObjectProperty | public void setObjectProperty(String name, Object value) throws JMSException(Code) | | |
setReadOnlyMode | public void setReadOnlyMode()(Code) | | Set the message to read only
|
setShortProperty | public void setShortProperty(String name, short value) throws JMSException(Code) | | |
setStringProperty | public void setStringProperty(String name, String value) throws JMSException(Code) | | |
|
|
|