Home » activemq-parent-5.3.1-source-release » org.apache » activemq » command » [javadoc | source]
org.apache.activemq.command
public class: ActiveMQMessage [javadoc | source]
java.lang.Object
   org.apache.activemq.command.BaseCommand
      org.apache.activemq.command.Message
         org.apache.activemq.command.ActiveMQMessage

All Implemented Interfaces:
    Message, MarshallAware, MessageReference, Command

Direct Known Subclasses:
    ActiveMQStreamMessage, ActiveMQMapMessage, ActiveMQBlobMessage, ActiveMQTextMessage, ActiveMQObjectMessage, ActiveMQBytesMessage

Nested Class Summary:
interface  ActiveMQMessage.PropertySetter   
Field Summary
public static final  byte DATA_STRUCTURE_TYPE     
protected transient  Callback acknowledgeCallback     
Fields inherited from org.apache.activemq.command.Message:
DEFAULT_MINIMUM_MESSAGE_SIZE,  messageId,  originalDestination,  originalTransactionId,  producerId,  destination,  transactionId,  expiration,  timestamp,  arrival,  brokerInTime,  brokerOutTime,  correlationId,  replyTo,  persistent,  type,  priority,  groupID,  groupSequence,  targetConsumerId,  compressed,  userID,  content,  marshalledProperties,  dataStructure,  redeliveryCounter,  size,  properties,  readOnlyProperties,  readOnlyBody,  recievedByDFBridge,  droppable
Fields inherited from org.apache.activemq.command.BaseCommand:
commandId,  responseRequired
Method from org.apache.activemq.command.ActiveMQMessage Summary:
acknowledge,   checkReadOnlyBody,   checkValidObject,   clearBody,   clearProperties,   copy,   copy,   decodeString,   encodeString,   equals,   getAcknowledgeCallback,   getBooleanProperty,   getByteProperty,   getDataStructureType,   getDoubleProperty,   getFloatProperty,   getIntProperty,   getJMSCorrelationID,   getJMSCorrelationIDAsBytes,   getJMSDeliveryMode,   getJMSDestination,   getJMSExpiration,   getJMSMessageID,   getJMSPriority,   getJMSRedelivered,   getJMSReplyTo,   getJMSTimestamp,   getJMSType,   getJMSXMimeType,   getLongProperty,   getObjectProperty,   getPropertyNames,   getShortProperty,   getStringProperty,   hashCode,   onSend,   propertyExists,   setAcknowledgeCallback,   setBooleanProperty,   setBooleanProperty,   setByteProperty,   setDoubleProperty,   setFloatProperty,   setIntProperty,   setJMSCorrelationID,   setJMSCorrelationIDAsBytes,   setJMSDeliveryMode,   setJMSDestination,   setJMSExpiration,   setJMSMessageID,   setJMSMessageID,   setJMSPriority,   setJMSRedelivered,   setJMSReplyTo,   setJMSTimestamp,   setJMSType,   setLongProperty,   setObjectProperty,   setObjectProperty,   setProperties,   setShortProperty,   setStringProperty,   visit
Methods from org.apache.activemq.command.Message:
afterMarshall,   afterUnmarshall,   beforeMarshall,   beforeUnmarshall,   clearBody,   clearProperties,   copy,   copy,   decrementReferenceCount,   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,   isMarshallAware,   isMessage,   isPersistent,   isReadOnlyBody,   isReadOnlyProperties,   isRecievedByDFBridge,   isRedelivered,   lazyCreateProperties,   onMessageRolledBack,   setArrival,   setBrokerInTime,   setBrokerOutTime,   setBrokerPath,   setCluster,   setCompressed,   setConnection,   setContent,   setCorrelationId,   setDataStructure,   setDestination,   setDroppable,   setExpiration,   setGroupID,   setGroupSequence,   setMarshalledProperties,   setMemoryUsage,   setMessageId,   setOriginalDestination,   setOriginalTransactionId,   setPersistent,   setPriority,   setProducerId,   setProperty,   setReadOnlyBody,   setReadOnlyProperties,   setRecievedByDFBridge,   setRedelivered,   setRedeliveryCounter,   setRegionDestination,   setReplyTo,   setTargetConsumerId,   setTimestamp,   setTransactionId,   setType,   setUserID,   toString,   toString
Methods from org.apache.activemq.command.BaseCommand:
copy,   getCommandId,   getFrom,   getTo,   isBrokerInfo,   isMarshallAware,   isMessage,   isMessageAck,   isMessageDispatch,   isMessageDispatchNotification,   isResponse,   isResponseRequired,   isShutdownInfo,   isWireFormatInfo,   setCommandId,   setFrom,   setResponseRequired,   setTo,   toString,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.activemq.command.ActiveMQMessage Detail:
 public  void acknowledge() throws JMSException 
 protected  void checkReadOnlyBody() throws MessageNotWriteableException 
 protected  void checkValidObject(Object value) throws MessageFormatException 
 public  void clearBody() throws JMSException 
 public  void clearProperties() 
 public Message copy() 
 protected  void copy(ActiveMQMessage copy) 
 protected static String decodeString(byte[] data) throws JMSException 
 protected static byte[] encodeString(String data) throws JMSException 
 public boolean equals(Object o) 
 public Callback getAcknowledgeCallback() 
 public boolean getBooleanProperty(String name) throws JMSException 
 public byte getByteProperty(String name) throws JMSException 
 public byte getDataStructureType() 
 public double getDoubleProperty(String name) throws JMSException 
 public float getFloatProperty(String name) throws JMSException 
 public int getIntProperty(String name) throws JMSException 
 public String getJMSCorrelationID() 
 public byte[] getJMSCorrelationIDAsBytes() throws JMSException 
 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 String getJMSXMimeType() 
 public long getLongProperty(String name) throws JMSException 
 public Object getObjectProperty(String name) throws JMSException 
 public Enumeration getPropertyNames() throws JMSException 
 public short getShortProperty(String name) throws JMSException 
 public String getStringProperty(String name) throws JMSException 
 public int hashCode() 
 public  void onSend() throws JMSException 
    Send operation event listener. Used to get the message ready to be sent.
 public boolean propertyExists(String name) throws JMSException 
 public  void setAcknowledgeCallback(Callback acknowledgeCallback) 
 public  void setBooleanProperty(String name,
    boolean value) throws JMSException 
 public  void setBooleanProperty(String name,
    boolean value,
    boolean checkReadOnly) throws JMSException 
 public  void setByteProperty(String name,
    byte value) throws JMSException 
 public  void setDoubleProperty(String name,
    double value) throws JMSException 
 public  void setFloatProperty(String name,
    float value) throws JMSException 
 public  void setIntProperty(String name,
    int value) throws JMSException 
 public  void setJMSCorrelationID(String correlationId) 
 public  void setJMSCorrelationIDAsBytes(byte[] correlationId) throws JMSException 
 public  void setJMSDeliveryMode(int mode) 
 public  void setJMSDestination(Destination destination) throws JMSException 
 public  void setJMSExpiration(long expiration) 
 public  void setJMSMessageID(String value) throws JMSException 
    Seems to be invalid because the parameter doesn't initialize MessageId instance variables ProducerId and ProducerSequenceId
 public  void setJMSMessageID(ProducerId producerId,
    long producerSequenceId) throws JMSException 
    This will create an object of MessageId. For it to be valid, the instance variable ProducerId and producerSequenceId must be initialized.
 public  void setJMSPriority(int priority) 
 public  void setJMSRedelivered(boolean redelivered) 
 public  void setJMSReplyTo(Destination destination) throws JMSException 
 public  void setJMSTimestamp(long timestamp) 
 public  void setJMSType(String type) 
 public  void setLongProperty(String name,
    long value) throws JMSException 
 public  void setObjectProperty(String name,
    Object value) throws JMSException 
 public  void setObjectProperty(String name,
    Object value,
    boolean checkReadOnly) throws JMSException 
 public  void setProperties(Map properties) throws JMSException 
 public  void setShortProperty(String name,
    short value) throws JMSException 
 public  void setStringProperty(String name,
    String value) throws JMSException 
 public Response visit(CommandVisitor visitor) throws Exception