Package org.apache.activemq.command
Class ConnectionId
- java.lang.Object
-
- org.apache.activemq.command.ConnectionId
-
- All Implemented Interfaces:
Comparable<ConnectionId>
,DataStructure
public class ConnectionId extends Object implements DataStructure, Comparable<ConnectionId>
-
-
Field Summary
Fields Modifier and Type Field Description static byte
DATA_STRUCTURE_TYPE
protected String
value
-
Constructor Summary
Constructors Constructor Description ConnectionId()
ConnectionId(String connectionId)
ConnectionId(ConnectionId id)
ConnectionId(ConsumerId id)
ConnectionId(ProducerId id)
ConnectionId(SessionId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ConnectionId o)
boolean
equals(Object o)
byte
getDataStructureType()
String
getValue()
int
hashCode()
boolean
isMarshallAware()
void
setValue(String connectionId)
String
toString()
-
-
-
Field Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
value
protected String value
-
-
Constructor Detail
-
ConnectionId
public ConnectionId()
-
ConnectionId
public ConnectionId(String connectionId)
-
ConnectionId
public ConnectionId(ConnectionId id)
-
ConnectionId
public ConnectionId(SessionId id)
-
ConnectionId
public ConnectionId(ProducerId id)
-
ConnectionId
public ConnectionId(ConsumerId id)
-
-
Method Detail
-
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureType
in interfaceDataStructure
- Returns:
- The type of the data structure
-
getValue
public String getValue()
-
setValue
public void setValue(String connectionId)
-
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAware
in interfaceDataStructure
-
compareTo
public int compareTo(ConnectionId o)
- Specified by:
compareTo
in interfaceComparable<ConnectionId>
-
-