Package org.apache.activemq.command
Class ConsumerId
java.lang.Object
org.apache.activemq.command.ConsumerId
- All Implemented Interfaces:
DataStructure
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConsumerId
(String str) ConsumerId
(ConsumerId id) ConsumerId
(SessionId sessionId, long consumerId) -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte
long
long
getValue()
int
hashCode()
boolean
void
setConnectionId
(String connectionId) void
setSessionId
(long sessionId) void
setValue
(long consumerId) toString()
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
connectionId
-
sessionId
protected long sessionId -
value
protected long value -
hashCode
protected transient int hashCode -
key
-
parentId
-
-
Constructor Details
-
ConsumerId
public ConsumerId() -
ConsumerId
-
ConsumerId
-
ConsumerId
-
-
Method Details
-
getParentId
-
hashCode
public int hashCode() -
equals
-
getDataStructureType
public byte getDataStructureType()- Specified by:
getDataStructureType
in interfaceDataStructure
- Returns:
- The type of the data structure
-
toString
-
getConnectionId
-
setConnectionId
-
getSessionId
public long getSessionId() -
setSessionId
public void setSessionId(long sessionId) -
getValue
public long getValue() -
setValue
public void setValue(long consumerId) -
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAware
in interfaceDataStructure
-