Package org.apache.activemq.command
Class RemoveInfo
java.lang.Object
org.apache.activemq.command.BaseCommand
org.apache.activemq.command.RemoveInfo
- All Implemented Interfaces:
Command,DataStructure
Removes a consumer, producer, session or connection.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final intstatic final intprotected longprotected DataStructureFields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytelongbooleanReturns true if this event is for a removed connectionbooleanReturns true if this event is for a removed consumerbooleanReturns true if this event is for a removed producerbooleanReturns true if this event is for a removed sessionvoidsetLastDeliveredSequenceId(long lastDeliveredSequenceId) voidsetObjectId(DataStructure objectId) visit(CommandVisitor visitor) Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isConsumerControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, 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:
-
LAST_DELIVERED_UNSET
public static final int LAST_DELIVERED_UNSET- See Also:
-
LAST_DELIVERED_UNKNOWN
public static final int LAST_DELIVERED_UNKNOWN- See Also:
-
objectId
-
lastDeliveredSequenceId
protected long lastDeliveredSequenceId
-
-
Constructor Details
-
RemoveInfo
public RemoveInfo() -
RemoveInfo
-
-
Method Details
-
getDataStructureType
public byte getDataStructureType()- Returns:
- The type of the data structure
-
getObjectId
-
setObjectId
-
getLastDeliveredSequenceId
public long getLastDeliveredSequenceId() -
setLastDeliveredSequenceId
public void setLastDeliveredSequenceId(long lastDeliveredSequenceId) -
visit
- Throws:
Exception
-
isConnectionRemove
public boolean isConnectionRemove()Returns true if this event is for a removed connection -
isSessionRemove
public boolean isSessionRemove()Returns true if this event is for a removed session -
isConsumerRemove
public boolean isConsumerRemove()Returns true if this event is for a removed consumer -
isProducerRemove
public boolean isProducerRemove()Returns true if this event is for a removed producer
-