Package org.apache.activemq.command
Class MessageDispatch
java.lang.Object
org.apache.activemq.command.BaseCommand
org.apache.activemq.command.MessageDispatch
- All Implemented Interfaces:
Command,DataStructure
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Objectprotected ConsumerIdstatic final byteprotected longprotected ActiveMQDestinationprotected Messageprotected intprotected Throwableprotected TransmitCallbackFields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytelongintbooleanvoidsetConsumer(Object consumer) voidsetConsumerId(ConsumerId consumerId) voidsetDeliverySequenceId(long deliverySequenceId) voidsetDestination(ActiveMQDestination destination) voidsetMessage(Message message) voidsetRedeliveryCounter(int deliveryCounter) voidsetRollbackCause(Throwable rollbackCause) voidsetTransmitCallback(TransmitCallback transmitCallback) visit(CommandVisitor visitor) Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isConsumerControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
consumerId
-
destination
-
message
-
redeliveryCounter
protected int redeliveryCounter -
deliverySequenceId
protected transient long deliverySequenceId -
consumer
-
transmitCallback
-
rollbackCause
-
-
Constructor Details
-
MessageDispatch
public MessageDispatch()
-
-
Method Details
-
getDataStructureType
public byte getDataStructureType()- Returns:
- The type of the data structure
-
isMessageDispatch
public boolean isMessageDispatch()- Specified by:
isMessageDispatchin interfaceCommand- Overrides:
isMessageDispatchin classBaseCommand
-
getConsumerId
-
setConsumerId
-
getDestination
-
setDestination
-
getMessage
-
setMessage
-
getDeliverySequenceId
public long getDeliverySequenceId() -
setDeliverySequenceId
public void setDeliverySequenceId(long deliverySequenceId) -
getRedeliveryCounter
public int getRedeliveryCounter() -
setRedeliveryCounter
public void setRedeliveryCounter(int deliveryCounter) -
getConsumer
-
setConsumer
-
visit
- Throws:
Exception
-
getTransmitCallback
-
setTransmitCallback
-
getRollbackCause
-
setRollbackCause
-