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
- Version:
- $Revision$
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
ConsumerId
public ConsumerId()
ConsumerId
public ConsumerId(SessionId sessionId,
long consumerId)
ConsumerId
public ConsumerId(ConsumerId id)
getParentId
public SessionId getParentId()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureType
in interface DataStructure
- Returns:
- The type of the data structure
toString
public String toString()
- Overrides:
toString
in class Object
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 interface DataStructure
Copyright © 2011 Apache Software Foundation. All Rights Reserved.