org.apache.activemq.command
Class ConsumerId

java.lang.Object
  extended by org.apache.activemq.command.ConsumerId
All Implemented Interfaces:
DataStructure

public class ConsumerId
extends java.lang.Object
implements DataStructure


Field Summary
protected  java.lang.String connectionId
           
static byte DATA_STRUCTURE_TYPE
           
protected  int hashCode
           
protected  java.lang.String key
           
protected  SessionId parentId
           
protected  long sessionId
           
protected  long value
           
 
Constructor Summary
ConsumerId()
           
ConsumerId(ConsumerId id)
           
ConsumerId(SessionId sessionId, long consumerId)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getConnectionId()
           
 byte getDataStructureType()
           
 SessionId getParentId()
           
 long getSessionId()
           
 long getValue()
           
 int hashCode()
           
 boolean isMarshallAware()
           
 void setConnectionId(java.lang.String connectionId)
           
 void setSessionId(long sessionId)
           
 void setValue(long consumerId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_STRUCTURE_TYPE

public static final byte DATA_STRUCTURE_TYPE
See Also:
Constant Field Values

connectionId

protected java.lang.String connectionId

sessionId

protected long sessionId

value

protected long value

hashCode

protected transient int hashCode

key

protected transient java.lang.String key

parentId

protected transient SessionId parentId
Constructor Detail

ConsumerId

public ConsumerId()

ConsumerId

public ConsumerId(SessionId sessionId,
                  long consumerId)

ConsumerId

public ConsumerId(ConsumerId id)
Method Detail

getParentId

public SessionId getParentId()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getDataStructureType

public byte getDataStructureType()
Specified by:
getDataStructureType in interface DataStructure
Returns:
The type of the data structure

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getConnectionId

public java.lang.String getConnectionId()

setConnectionId

public void setConnectionId(java.lang.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 © 2005-2011 FuseSource, Corp.. All Rights Reserved.