public class ActiveMQMessage extends Message implements Message, ScheduledMessage
Message.MessageDestination| Modifier and Type | Field and Description |
|---|---|
protected Callback |
acknowledgeCallback |
static String |
BROKER_PATH_PROPERTY |
static byte |
DATA_STRUCTURE_TYPE |
static String |
DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY |
arrival, brokerInTime, brokerOutTime, compressed, content, correlationId, dataStructure, DEFAULT_MINIMUM_MESSAGE_SIZE, destination, droppable, expiration, groupID, groupSequence, jmsXGroupFirstForConsumer, marshalledProperties, messageId, ORIGINAL_EXPIRATION, originalDestination, originalTransactionId, persistent, priority, producerId, properties, readOnlyBody, readOnlyProperties, recievedByDFBridge, redeliveryCounter, replyTo, size, targetConsumerId, timestamp, transactionId, type, userIDcommandId, responseRequiredDEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVEAMQ_SCHEDULED_CRON, AMQ_SCHEDULED_DELAY, AMQ_SCHEDULED_ID, AMQ_SCHEDULED_PERIOD, AMQ_SCHEDULED_REPEAT, AMQ_SCHEDULER_ACTION, AMQ_SCHEDULER_ACTION_BROWSE, AMQ_SCHEDULER_ACTION_END_TIME, AMQ_SCHEDULER_ACTION_REMOVE, AMQ_SCHEDULER_ACTION_REMOVEALL, AMQ_SCHEDULER_ACTION_START_TIME, AMQ_SCHEDULER_MANAGEMENT_DESTINATION| Constructor and Description |
|---|
ActiveMQMessage() |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge() |
protected void |
checkReadOnlyBody() |
protected void |
checkValidObject(Object value) |
protected void |
checkValidScheduled(String name,
Object value) |
void |
clearBody() |
void |
clearProperties() |
protected Object |
convertScheduled(String name,
Object value) |
Message |
copy() |
protected void |
copy(ActiveMQMessage copy) |
protected static String |
decodeString(byte[] data) |
protected static byte[] |
encodeString(String data) |
boolean |
equals(Object o) |
Callback |
getAcknowledgeCallback() |
Enumeration |
getAllPropertyNames()
return all property names, including standard JMS properties and JMSX properties
|
boolean |
getBooleanProperty(String name) |
byte |
getByteProperty(String name) |
byte |
getDataStructureType() |
double |
getDoubleProperty(String name) |
float |
getFloatProperty(String name) |
int |
getIntProperty(String name) |
String |
getJMSCorrelationID() |
byte[] |
getJMSCorrelationIDAsBytes() |
int |
getJMSDeliveryMode() |
Destination |
getJMSDestination() |
long |
getJMSExpiration() |
String |
getJMSMessageID() |
int |
getJMSPriority() |
boolean |
getJMSRedelivered() |
Destination |
getJMSReplyTo() |
long |
getJMSTimestamp() |
String |
getJMSType() |
String |
getJMSXMimeType()
Returns the MIME type of this mesage.
|
long |
getLongProperty(String name) |
Object |
getObjectProperty(String name) |
Enumeration |
getPropertyNames() |
short |
getShortProperty(String name) |
String |
getStringProperty(String name) |
int |
hashCode() |
void |
onSend()
Send operation event listener.
|
boolean |
propertyExists(String name) |
void |
setAcknowledgeCallback(Callback acknowledgeCallback) |
void |
setBooleanProperty(String name,
boolean value) |
void |
setBooleanProperty(String name,
boolean value,
boolean checkReadOnly) |
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 mode) |
void |
setJMSDestination(Destination destination) |
void |
setJMSExpiration(long expiration) |
void |
setJMSMessageID(ProducerId producerId,
long producerSequenceId)
This will create an object of MessageId.
|
void |
setJMSMessageID(String value)
Seems to be invalid because the parameter doesn't initialize MessageId
instance variables ProducerId and ProducerSequenceId
|
void |
setJMSPriority(int priority) |
void |
setJMSRedelivered(boolean redelivered) |
void |
setJMSReplyTo(Destination destination) |
void |
setJMSTimestamp(long timestamp) |
void |
setJMSType(String type) |
void |
setLongProperty(String name,
long value) |
void |
setObjectProperty(String name,
Object value) |
void |
setObjectProperty(String name,
Object value,
boolean checkReadOnly) |
void |
setProperties(Map<String,?> properties) |
void |
setShortProperty(String name,
short value) |
void |
setStringProperty(String name,
String value) |
void |
storeContent() |
void |
storeContentAndClear() |
Response |
visit(CommandVisitor visitor) |
afterMarshall, afterUnmarshall, beforeMarshall, beforeUnmarshall, clearMarshalledState, compress, copy, decrementReferenceCount, doCompress, getArrival, getBrokerInTime, getBrokerOutTime, getBrokerPath, getCluster, getConnection, getContent, getCorrelationId, getDataStructure, getDestination, getExpiration, getGroupID, getGroupSequence, getMarshalledProperties, getMemoryUsage, getMessage, getMessageHardRef, getMessageId, getMinimumMessageSize, getOriginalDestination, getOriginalTransactionId, getPriority, getProducerId, getProperties, getProperty, getRedeliveryCounter, getReferenceCount, getRegionDestination, getReplyTo, getSize, getTargetConsumerId, getTimestamp, getTransactionId, getType, getUserID, incrementRedeliveryCounter, incrementReferenceCount, isAdvisory, isCompressed, isDroppable, isDropped, isExpired, isInTransaction, isJMSXGroupFirstForConsumer, isMarshallAware, isMessage, isPersistent, isReadOnlyBody, isReadOnlyProperties, isRecievedByDFBridge, isRedelivered, lazyCreateProperties, onMessageRolledBack, removeProperty, setArrival, setBrokerInTime, setBrokerOutTime, setBrokerPath, setCluster, setCompressed, setConnection, setContent, setCorrelationId, setDataStructure, setDestination, setDroppable, setExpiration, setGroupID, setGroupSequence, setJMSXGroupFirstForConsumer, setMarshalledProperties, setMemoryUsage, setMessageId, setOriginalDestination, setOriginalTransactionId, setPersistent, setPriority, setProducerId, setProperty, setReadOnlyBody, setReadOnlyProperties, setRecievedByDFBridge, setRedelivered, setRedeliveryCounter, setRegionDestination, setReplyTo, setTargetConsumerId, setTimestamp, setTransactionId, setType, setUserID, toString, toStringcopy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isConsumerControl, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTopublic static final byte DATA_STRUCTURE_TYPE
public static final String DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY
public static final String BROKER_PATH_PROPERTY
protected transient Callback acknowledgeCallback
public ActiveMQMessage()
public byte getDataStructureType()
getDataStructureType in interface DataStructureprotected void copy(ActiveMQMessage copy)
public void acknowledge() throws JMSException
acknowledge in interface MessageJMSExceptionpublic void clearBody() throws JMSException
clearBody in interface MessageclearBody in class MessageJMSExceptionpublic String getJMSMessageID()
getJMSMessageID in interface Messagepublic void setJMSMessageID(String value) throws JMSException
setJMSMessageID in interface Messagevalue - JMSExceptionpublic void setJMSMessageID(ProducerId producerId, long producerSequenceId) throws JMSException
producerId - producerSequenceId - JMSExceptionpublic long getJMSTimestamp()
getJMSTimestamp in interface Messagepublic void setJMSTimestamp(long timestamp)
setJMSTimestamp in interface Messagepublic String getJMSCorrelationID()
getJMSCorrelationID in interface Messagepublic void setJMSCorrelationID(String correlationId)
setJMSCorrelationID in interface Messagepublic byte[] getJMSCorrelationIDAsBytes() throws JMSException
getJMSCorrelationIDAsBytes in interface MessageJMSExceptionpublic void setJMSCorrelationIDAsBytes(byte[] correlationId) throws JMSException
setJMSCorrelationIDAsBytes in interface MessageJMSExceptionpublic String getJMSXMimeType()
MessageBlobMessage
it allows you to create a selector on the MIME type of the BLOB bodyprotected static String decodeString(byte[] data) throws JMSException
JMSExceptionprotected static byte[] encodeString(String data) throws JMSException
JMSExceptionpublic Destination getJMSReplyTo()
getJMSReplyTo in interface Messagepublic void setJMSReplyTo(Destination destination) throws JMSException
setJMSReplyTo in interface MessageJMSExceptionpublic Destination getJMSDestination()
getJMSDestination in interface Messagepublic void setJMSDestination(Destination destination) throws JMSException
setJMSDestination in interface MessageJMSExceptionpublic int getJMSDeliveryMode()
getJMSDeliveryMode in interface Messagepublic void setJMSDeliveryMode(int mode)
setJMSDeliveryMode in interface Messagepublic boolean getJMSRedelivered()
getJMSRedelivered in interface Messagepublic void setJMSRedelivered(boolean redelivered)
setJMSRedelivered in interface Messagepublic String getJMSType()
getJMSType in interface Messagepublic void setJMSType(String type)
setJMSType in interface Messagepublic long getJMSExpiration()
getJMSExpiration in interface Messagepublic void setJMSExpiration(long expiration)
setJMSExpiration in interface Messagepublic int getJMSPriority()
getJMSPriority in interface Messagepublic void setJMSPriority(int priority)
setJMSPriority in interface Messagepublic void clearProperties()
clearProperties in interface MessageclearProperties in class Messagepublic boolean propertyExists(String name) throws JMSException
propertyExists in interface MessageJMSExceptionpublic Enumeration getPropertyNames() throws JMSException
getPropertyNames in interface MessageJMSExceptionpublic Enumeration getAllPropertyNames() throws JMSException
JMSExceptionpublic void setObjectProperty(String name, Object value) throws JMSException
setObjectProperty in interface MessageJMSExceptionpublic void setObjectProperty(String name, Object value, boolean checkReadOnly) throws JMSException
JMSExceptionpublic void setProperties(Map<String,?> properties) throws JMSException
JMSExceptionprotected void checkValidObject(Object value) throws MessageFormatException
MessageFormatExceptionprotected void checkValidScheduled(String name, Object value) throws MessageFormatException
MessageFormatExceptionprotected Object convertScheduled(String name, Object value) throws MessageFormatException
MessageFormatExceptionpublic Object getObjectProperty(String name) throws JMSException
getObjectProperty in interface MessageJMSExceptionpublic boolean getBooleanProperty(String name) throws JMSException
getBooleanProperty in interface MessageJMSExceptionpublic byte getByteProperty(String name) throws JMSException
getByteProperty in interface MessageJMSExceptionpublic short getShortProperty(String name) throws JMSException
getShortProperty in interface MessageJMSExceptionpublic int getIntProperty(String name) throws JMSException
getIntProperty in interface MessageJMSExceptionpublic long getLongProperty(String name) throws JMSException
getLongProperty in interface MessageJMSExceptionpublic float getFloatProperty(String name) throws JMSException
getFloatProperty in interface MessageJMSExceptionpublic double getDoubleProperty(String name) throws JMSException
getDoubleProperty in interface MessageJMSExceptionpublic String getStringProperty(String name) throws JMSException
getStringProperty in interface MessageJMSExceptionpublic void setBooleanProperty(String name, boolean value) throws JMSException
setBooleanProperty in interface MessageJMSExceptionpublic void setBooleanProperty(String name, boolean value, boolean checkReadOnly) throws JMSException
JMSExceptionpublic void setByteProperty(String name, byte value) throws JMSException
setByteProperty in interface MessageJMSExceptionpublic void setShortProperty(String name, short value) throws JMSException
setShortProperty in interface MessageJMSExceptionpublic void setIntProperty(String name, int value) throws JMSException
setIntProperty in interface MessageJMSExceptionpublic void setLongProperty(String name, long value) throws JMSException
setLongProperty in interface MessageJMSExceptionpublic void setFloatProperty(String name, float value) throws JMSException
setFloatProperty in interface MessageJMSExceptionpublic void setDoubleProperty(String name, double value) throws JMSException
setDoubleProperty in interface MessageJMSExceptionpublic void setStringProperty(String name, String value) throws JMSException
setStringProperty in interface MessageJMSExceptionprotected void checkReadOnlyBody() throws MessageNotWriteableException
MessageNotWriteableExceptionpublic Callback getAcknowledgeCallback()
public void setAcknowledgeCallback(Callback acknowledgeCallback)
public void onSend() throws JMSException
JMSExceptionpublic Response visit(CommandVisitor visitor) throws Exception
public void storeContent()
storeContent in class Messagepublic void storeContentAndClear()
storeContentAndClear in class MessageCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.