org.apache.activemq.command
Class ProducerId

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

public class ProducerId
extends Object
implements DataStructure


Field Summary
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
ProducerId()
           
ProducerId(ProducerId id)
           
ProducerId(SessionId sessionId, long producerId)
           
ProducerId(String producerKey)
           
 
Method Summary
 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 producerId)
           
 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 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

ProducerId

public ProducerId()

ProducerId

public ProducerId(SessionId sessionId,
                  long producerId)

ProducerId

public ProducerId(ProducerId id)

ProducerId

public ProducerId(String producerKey)
Method Detail

getParentId

public SessionId getParentId()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getDataStructureType

public byte getDataStructureType()
Specified by:
getDataStructureType in interface DataStructure
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 producerId)

getSessionId

public long getSessionId()

setSessionId

public void setSessionId(long sessionId)

isMarshallAware

public boolean isMarshallAware()
Specified by:
isMarshallAware in interface DataStructure


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.