Package org.apache.activemq.command
Class SessionId
java.lang.Object
org.apache.activemq.command.SessionId
- All Implemented Interfaces:
DataStructure
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic final byteprotected intprotected Stringprotected ConnectionIdprotected long -
Constructor Summary
ConstructorsConstructorDescriptionSessionId(ConnectionId connectionId, long sessionId) SessionId(ConsumerId id) SessionId(ProducerId id) -
Method Summary
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
connectionId
-
value
protected long value -
hashCode
protected transient int hashCode -
key
-
parentId
-
-
Constructor Details
-
SessionId
public SessionId() -
SessionId
-
SessionId
-
SessionId
-
SessionId
-
-
Method Details
-
getParentId
-
hashCode
public int hashCode() -
equals
-
getDataStructureType
public byte getDataStructureType()- Specified by:
getDataStructureTypein interfaceDataStructure- Returns:
- The type of the data structure
-
getConnectionId
-
setConnectionId
-
getValue
public long getValue() -
setValue
public void setValue(long sessionId) -
toString
-
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAwarein interfaceDataStructure
-