Package org.apache.activemq.command
Class ProducerId
- java.lang.Object
-
- org.apache.activemq.command.ProducerId
-
- All Implemented Interfaces:
DataStructure
public class ProducerId extends Object implements DataStructure
-
-
Field Summary
Fields Modifier and Type Field Description protected StringconnectionIdstatic byteDATA_STRUCTURE_TYPEprotected inthashCodeprotected Stringkeyprotected SessionIdparentIdprotected longsessionIdprotected longvalue
-
Constructor Summary
Constructors Constructor Description ProducerId()ProducerId(String producerKey)ProducerId(ProducerId id)ProducerId(SessionId sessionId, long producerId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetConnectionId()bytegetDataStructureType()SessionIdgetParentId()longgetSessionId()longgetValue()inthashCode()booleanisMarshallAware()voidsetConnectionId(String connectionId)voidsetSessionId(long sessionId)voidsetValue(long producerId)StringtoString()
-
-
-
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()
-
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureTypein interfaceDataStructure- 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:
isMarshallAwarein interfaceDataStructure
-
-