|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mq.SpyMessage
This class implements javax.jms.Message
| Nested Class Summary | |
static class |
SpyMessage.Header
The message headers |
| Field Summary | |
AcknowledgementRequest |
ack
The acknowledgement request for this message |
protected static int |
BOOLEAN
A boolean property |
protected static int |
BYTE
A byte property |
protected static byte |
BYTES_MESS
An bytes message |
protected static int |
DOUBLE
A double property |
protected static byte |
ENCAP_MESS
An encapsulated message |
protected static int |
FLOAT
A float property |
SpyMessage.Header |
header
The message header |
protected static int |
INT
An integer property |
protected static int |
LONG
A long property |
protected static byte |
MAP_MESS
A map message |
protected static int |
NULL
A null property |
protected static int |
OBJECT
An object property |
protected static byte |
OBJECT_MESS
An object message |
static String |
PROPERTY_REDELIVERY_COUNT
JBoss-vendor specific property for getting the count of redelivery attempts of a message. |
static String |
PROPERTY_REDELIVERY_DELAY
JBoss-vendor specific property specifying redelivery delay of a message. |
static String |
PROPERTY_REDELIVERY_LIMIT
JBoss-vendor specific property specifying the limit of redelivery attempts of a message. |
static String |
PROPERTY_SCHEDULED_DELIVERY
JBoss-vendor specific property for scheduling a JMS message. |
SpySession |
session
The session for this message |
protected static int |
SHORT
A short property |
protected static byte |
SPY_MESS
A plain message |
protected static byte |
STREAM_MESS
A stream message |
protected static int |
STRING
A string property |
protected static byte |
TEXT_MESS
A text message |
| Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
| Constructor Summary | |
SpyMessage()
|
|
| Method Summary | |
void |
acknowledge()
Acknowledge a message |
void |
clearBody()
Clear the message body |
void |
clearProperties()
|
int |
compareTo(Object o)
|
void |
copyProps(SpyMessage original)
Copy the properties |
void |
createAcknowledgementRequest(int subscriptionId)
Create an acknowledgement request for the message |
void |
doAcknowledge()
Actually acknowledge a message |
void |
doNegAcknowledge()
Actually nack a message |
AcknowledgementRequest |
getAcknowledgementRequest(boolean isAck)
Get an acknowledgement request for the message |
boolean |
getBooleanProperty(String name)
|
byte |
getByteProperty(String name)
|
double |
getDoubleProperty(String name)
|
float |
getFloatProperty(String name)
|
int |
getIntProperty(String name)
|
String |
getJMSCorrelationID()
|
byte[] |
getJMSCorrelationIDAsBytes()
|
int |
getJMSDeliveryMode()
|
javax.jms.Destination |
getJMSDestination()
|
long |
getJMSExpiration()
|
String |
getJMSMessageID()
|
int |
getJMSPriority()
|
boolean |
getJMSRedelivered()
|
javax.jms.Destination |
getJMSReplyTo()
|
long |
getJMSTimestamp()
|
String |
getJMSType()
|
long |
getLongProperty(String name)
|
Object |
getObjectProperty(String name)
|
Enumeration |
getPropertyNames()
|
short |
getShortProperty(String name)
|
String |
getStringProperty(String name)
|
boolean |
isOutdated()
Test whether a message has expired |
SpyMessage |
myClone()
Clone the message |
boolean |
propertyExists(String name)
|
void |
readExternal(ObjectInput in)
|
static SpyMessage |
readMessage(ObjectInput in)
Read a message |
void |
setBooleanProperty(String name,
boolean value)
|
void |
setByteProperty(String name,
byte value)
|
void |
setDoubleProperty(String name,
double value)
|
void |
setFloatProperty(String name,
float value)
|
void |
setIntProperty(String name,
int value)
|
void |
setJMSCorrelationID(String correlationID)
|
void |
setJMSCorrelationIDAsBytes(byte[] correlationID)
|
void |
setJMSDeliveryMode(int deliveryMode)
|
void |
setJMSDestination(javax.jms.Destination destination)
|
void |
setJMSExpiration(long expiration)
|
void |
setJMSMessageID(String id)
|
void |
setJMSPriority(int priority)
|
void |
setJMSRedelivered(boolean redelivered)
|
void |
setJMSReplyTo(javax.jms.Destination replyTo)
|
void |
setJMSTimestamp(long timestamp)
|
void |
setJMSType(String type)
|
void |
setLongProperty(String name,
long value)
|
void |
setObjectProperty(String name,
Object value)
|
void |
setReadOnlyMode()
Set the message to read only |
void |
setShortProperty(String name,
short value)
|
void |
setStringProperty(String name,
String value)
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
static void |
writeMessage(SpyMessage message,
ObjectOutput out)
Write a message |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String PROPERTY_SCHEDULED_DELIVERY
public static final String PROPERTY_REDELIVERY_DELAY
public static final String PROPERTY_REDELIVERY_COUNT
public static final String PROPERTY_REDELIVERY_LIMIT
protected static final byte OBJECT_MESS
protected static final byte BYTES_MESS
protected static final byte MAP_MESS
protected static final byte TEXT_MESS
protected static final byte STREAM_MESS
protected static final byte ENCAP_MESS
protected static final byte SPY_MESS
protected static final int BYTE
protected static final int SHORT
protected static final int INT
protected static final int LONG
protected static final int FLOAT
protected static final int DOUBLE
protected static final int BOOLEAN
protected static final int STRING
protected static final int OBJECT
protected static final int NULL
public SpyMessage.Header header
public transient AcknowledgementRequest ack
public transient SpySession session
| Constructor Detail |
public SpyMessage()
| Method Detail |
public static void writeMessage(SpyMessage message, ObjectOutput out) throws IOException
message - the messageout - the output
IOException - for any errorpublic static SpyMessage readMessage(ObjectInput in) throws IOException
in - the input
IOException - for any error
public void clearBody()
throws javax.jms.JMSException
clearBody in interface javax.jms.Messagejavax.jms.JMSException - for any error
public void acknowledge()
throws javax.jms.JMSException
acknowledge in interface javax.jms.Messagejavax.jms.JMSException - for any errorpublic void setReadOnlyMode()
public SpyMessage myClone() throws javax.jms.JMSException
javax.jms.JMSException - for any errorpublic void copyProps(SpyMessage original) throws javax.jms.JMSException
original - the message with original properties
javax.jms.JMSException - for any errorpublic boolean isOutdated()
public void doAcknowledge()
throws javax.jms.JMSException
javax.jms.JMSException - for any error
public void doNegAcknowledge()
throws javax.jms.JMSException
javax.jms.JMSException - for any errorpublic void createAcknowledgementRequest(int subscriptionId)
public AcknowledgementRequest getAcknowledgementRequest(boolean isAck) throws javax.jms.JMSException
isAck - true for an ack, false for a nack
javax.jms.JMSException - for any errorpublic int compareTo(Object o)
compareTo in interface Comparablepublic String getJMSMessageID()
getJMSMessageID in interface javax.jms.Messagepublic void setJMSMessageID(String id) throws javax.jms.JMSException
setJMSMessageID in interface javax.jms.Messagejavax.jms.JMSExceptionpublic long getJMSTimestamp()
getJMSTimestamp in interface javax.jms.Message
public void setJMSTimestamp(long timestamp)
throws javax.jms.JMSException
setJMSTimestamp in interface javax.jms.Messagejavax.jms.JMSException
public byte[] getJMSCorrelationIDAsBytes()
throws javax.jms.JMSException
getJMSCorrelationIDAsBytes in interface javax.jms.Messagejavax.jms.JMSException
public void setJMSCorrelationIDAsBytes(byte[] correlationID)
throws javax.jms.JMSException
setJMSCorrelationIDAsBytes in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void setJMSCorrelationID(String correlationID) throws javax.jms.JMSException
setJMSCorrelationID in interface javax.jms.Messagejavax.jms.JMSExceptionpublic String getJMSCorrelationID() throws javax.jms.JMSException
getJMSCorrelationID in interface javax.jms.Messagejavax.jms.JMSExceptionpublic javax.jms.Destination getJMSReplyTo()
getJMSReplyTo in interface javax.jms.Message
public void setJMSReplyTo(javax.jms.Destination replyTo)
throws javax.jms.JMSException
setJMSReplyTo in interface javax.jms.Messagejavax.jms.JMSExceptionpublic javax.jms.Destination getJMSDestination()
getJMSDestination in interface javax.jms.Message
public void setJMSDestination(javax.jms.Destination destination)
throws javax.jms.JMSException
setJMSDestination in interface javax.jms.Messagejavax.jms.JMSExceptionpublic int getJMSDeliveryMode()
getJMSDeliveryMode in interface javax.jms.Message
public void setJMSDeliveryMode(int deliveryMode)
throws javax.jms.JMSException
setJMSDeliveryMode in interface javax.jms.Messagejavax.jms.JMSExceptionpublic boolean getJMSRedelivered()
getJMSRedelivered in interface javax.jms.Message
public void setJMSRedelivered(boolean redelivered)
throws javax.jms.JMSException
setJMSRedelivered in interface javax.jms.Messagejavax.jms.JMSExceptionpublic String getJMSType()
getJMSType in interface javax.jms.Messagepublic void setJMSType(String type) throws javax.jms.JMSException
setJMSType in interface javax.jms.Messagejavax.jms.JMSExceptionpublic long getJMSExpiration()
getJMSExpiration in interface javax.jms.Message
public void setJMSExpiration(long expiration)
throws javax.jms.JMSException
setJMSExpiration in interface javax.jms.Messagejavax.jms.JMSExceptionpublic int getJMSPriority()
getJMSPriority in interface javax.jms.Message
public void setJMSPriority(int priority)
throws javax.jms.JMSException
setJMSPriority in interface javax.jms.Messagejavax.jms.JMSException
public void clearProperties()
throws javax.jms.JMSException
clearProperties in interface javax.jms.Messagejavax.jms.JMSExceptionpublic boolean propertyExists(String name) throws javax.jms.JMSException
propertyExists in interface javax.jms.Messagejavax.jms.JMSExceptionpublic boolean getBooleanProperty(String name) throws javax.jms.JMSException
getBooleanProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic byte getByteProperty(String name) throws javax.jms.JMSException
getByteProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic short getShortProperty(String name) throws javax.jms.JMSException
getShortProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic int getIntProperty(String name) throws javax.jms.JMSException
getIntProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic long getLongProperty(String name) throws javax.jms.JMSException
getLongProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic float getFloatProperty(String name) throws javax.jms.JMSException
getFloatProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic double getDoubleProperty(String name) throws javax.jms.JMSException
getDoubleProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic String getStringProperty(String name) throws javax.jms.JMSException
getStringProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic Object getObjectProperty(String name) throws javax.jms.JMSException
getObjectProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic Enumeration getPropertyNames() throws javax.jms.JMSException
getPropertyNames in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void setBooleanProperty(String name, boolean value) throws javax.jms.JMSException
setBooleanProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void setByteProperty(String name, byte value) throws javax.jms.JMSException
setByteProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void setShortProperty(String name, short value) throws javax.jms.JMSException
setShortProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void setIntProperty(String name, int value) throws javax.jms.JMSException
setIntProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void setLongProperty(String name, long value) throws javax.jms.JMSException
setLongProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void setFloatProperty(String name, float value) throws javax.jms.JMSException
setFloatProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void setDoubleProperty(String name, double value) throws javax.jms.JMSException
setDoubleProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void setStringProperty(String name, String value) throws javax.jms.JMSException
setStringProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void setObjectProperty(String name, Object value) throws javax.jms.JMSException
setObjectProperty in interface javax.jms.Messagejavax.jms.JMSExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundExceptionpublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||