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
public class RemoveInfo extends BaseCommand
Removes a consumer, producer, session or connection.
-
-
Field Summary
Fields Modifier and Type Field Description static byteDATA_STRUCTURE_TYPEstatic intLAST_DELIVERED_UNKNOWNstatic intLAST_DELIVERED_UNSETprotected longlastDeliveredSequenceIdprotected DataStructureobjectId-
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
-
Constructor Summary
Constructors Constructor Description RemoveInfo()RemoveInfo(DataStructure objectId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetDataStructureType()longgetLastDeliveredSequenceId()DataStructuregetObjectId()booleanisConnectionRemove()Returns true if this event is for a removed connectionbooleanisConsumerRemove()Returns true if this event is for a removed consumerbooleanisProducerRemove()Returns true if this event is for a removed producerbooleanisSessionRemove()Returns true if this event is for a removed sessionvoidsetLastDeliveredSequenceId(long lastDeliveredSequenceId)voidsetObjectId(DataStructure objectId)Responsevisit(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 Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
LAST_DELIVERED_UNSET
public static final int LAST_DELIVERED_UNSET
- See Also:
- Constant Field Values
-
LAST_DELIVERED_UNKNOWN
public static final int LAST_DELIVERED_UNKNOWN
- See Also:
- Constant Field Values
-
objectId
protected DataStructure objectId
-
lastDeliveredSequenceId
protected long lastDeliveredSequenceId
-
-
Constructor Detail
-
RemoveInfo
public RemoveInfo()
-
RemoveInfo
public RemoveInfo(DataStructure objectId)
-
-
Method Detail
-
getDataStructureType
public byte getDataStructureType()
- Returns:
- The type of the data structure
-
getObjectId
public DataStructure getObjectId()
-
setObjectId
public void setObjectId(DataStructure objectId)
-
getLastDeliveredSequenceId
public long getLastDeliveredSequenceId()
-
setLastDeliveredSequenceId
public void setLastDeliveredSequenceId(long lastDeliveredSequenceId)
-
visit
public Response visit(CommandVisitor visitor) throws Exception
- 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
-
-