Package org.apache.activemq.command
Class ConsumerId
- java.lang.Object
-
- org.apache.activemq.command.ConsumerId
-
- All Implemented Interfaces:
DataStructure
public class ConsumerId extends Object implements DataStructure
-
-
Field Summary
Fields Modifier and Type Field Description protected String
connectionId
static byte
DATA_STRUCTURE_TYPE
protected int
hashCode
protected String
key
protected SessionId
parentId
protected long
sessionId
protected long
value
-
Constructor Summary
Constructors Constructor Description ConsumerId()
ConsumerId(String str)
ConsumerId(ConsumerId id)
ConsumerId(SessionId sessionId, long consumerId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getConnectionId()
byte
getDataStructureType()
SessionId
getParentId()
long
getSessionId()
long
getValue()
int
hashCode()
boolean
isMarshallAware()
void
setConnectionId(String connectionId)
void
setSessionId(long sessionId)
void
setValue(long consumerId)
String
toString()
-
-
-
Field Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
connectionId
protected String connectionId
-
sessionId
protected long sessionId
-
value
protected long value
-
hashCode
protected transient int hashCode
-
key
protected transient String key
-
parentId
protected transient SessionId parentId
-
-
Constructor Detail
-
ConsumerId
public ConsumerId()
-
ConsumerId
public ConsumerId(String str)
-
ConsumerId
public ConsumerId(SessionId sessionId, long consumerId)
-
ConsumerId
public ConsumerId(ConsumerId id)
-
-
Method Detail
-
getParentId
public SessionId getParentId()
-
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureType
in interfaceDataStructure
- Returns:
- The type of the data structure
-
getConnectionId
public String getConnectionId()
-
setConnectionId
public void setConnectionId(String connectionId)
-
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
-
-