Package org.apache.activemq.command
Class SessionId
- java.lang.Object
-
- org.apache.activemq.command.SessionId
-
- All Implemented Interfaces:
DataStructure
public class SessionId extends Object implements DataStructure
-
-
Field Summary
Fields Modifier and Type Field Description protected StringconnectionIdstatic byteDATA_STRUCTURE_TYPEprotected inthashCodeprotected Stringkeyprotected ConnectionIdparentIdprotected longvalue
-
Constructor Summary
Constructors Constructor Description SessionId()SessionId(ConnectionId connectionId, long sessionId)SessionId(ConsumerId id)SessionId(ProducerId id)SessionId(SessionId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetConnectionId()bytegetDataStructureType()ConnectionIdgetParentId()longgetValue()inthashCode()booleanisMarshallAware()voidsetConnectionId(String connectionId)voidsetValue(long sessionId)StringtoString()
-
-
-
Field Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
connectionId
protected String connectionId
-
value
protected long value
-
hashCode
protected transient int hashCode
-
key
protected transient String key
-
parentId
protected transient ConnectionId parentId
-
-
Constructor Detail
-
SessionId
public SessionId()
-
SessionId
public SessionId(ConnectionId connectionId, long sessionId)
-
SessionId
public SessionId(SessionId id)
-
SessionId
public SessionId(ProducerId id)
-
SessionId
public SessionId(ConsumerId id)
-
-
Method Detail
-
getParentId
public ConnectionId getParentId()
-
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureTypein interfaceDataStructure- Returns:
- The type of the data structure
-
getConnectionId
public String getConnectionId()
-
setConnectionId
public void setConnectionId(String connectionId)
-
getValue
public long getValue()
-
setValue
public void setValue(long sessionId)
-
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAwarein interfaceDataStructure
-
-