Package org.apache.activemq.command
Class SessionInfo
- java.lang.Object
-
- org.apache.activemq.command.BaseCommand
-
- org.apache.activemq.command.SessionInfo
-
- All Implemented Interfaces:
Command
,DataStructure
public class SessionInfo extends BaseCommand
-
-
Field Summary
Fields Modifier and Type Field Description static byte
DATA_STRUCTURE_TYPE
protected SessionId
sessionId
-
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
-
Constructor Summary
Constructors Constructor Description SessionInfo()
SessionInfo(ConnectionInfo connectionInfo, long sessionId)
SessionInfo(SessionId sessionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoveInfo
createRemoveCommand()
byte
getDataStructureType()
SessionId
getSessionId()
void
setSessionId(SessionId sessionId)
Response
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 Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
sessionId
protected SessionId sessionId
-
-
Constructor Detail
-
SessionInfo
public SessionInfo()
-
SessionInfo
public SessionInfo(ConnectionInfo connectionInfo, long sessionId)
-
SessionInfo
public SessionInfo(SessionId sessionId)
-
-
Method Detail
-
getDataStructureType
public byte getDataStructureType()
- Returns:
- The type of the data structure
-
getSessionId
public SessionId getSessionId()
-
setSessionId
public void setSessionId(SessionId sessionId)
-
createRemoveCommand
public RemoveInfo createRemoveCommand()
-
visit
public Response visit(CommandVisitor visitor) throws Exception
- Throws:
Exception
-
-