Package org.apache.qpid.jms.meta
Class JmsConsumerId
- java.lang.Object
-
- org.apache.qpid.jms.meta.JmsAbstractResourceId
-
- org.apache.qpid.jms.meta.JmsConsumerId
-
- All Implemented Interfaces:
Comparable<JmsConsumerId>,JmsResourceId
public final class JmsConsumerId extends JmsAbstractResourceId implements Comparable<JmsConsumerId>
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.jms.meta.JmsAbstractResourceId
hashCode, providerContext, providerHint
-
-
Constructor Summary
Constructors Constructor Description JmsConsumerId(String consumerKey)JmsConsumerId(String connectionId, long sessionId, long consumerId)JmsConsumerId(JmsConsumerId consumerId)JmsConsumerId(JmsSessionId sessionId, long consumerId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(JmsConsumerId other)booleanequals(Object o)StringgetConnectionId()JmsSessionIdgetParentId()longgetSessionId()longgetValue()inthashCode()StringtoString()-
Methods inherited from class org.apache.qpid.jms.meta.JmsAbstractResourceId
getProviderContext, getProviderHint, setProviderContext, setProviderHint
-
-
-
-
Constructor Detail
-
JmsConsumerId
public JmsConsumerId(String connectionId, long sessionId, long consumerId)
-
JmsConsumerId
public JmsConsumerId(JmsSessionId sessionId, long consumerId)
-
JmsConsumerId
public JmsConsumerId(JmsConsumerId consumerId)
-
JmsConsumerId
public JmsConsumerId(String consumerKey) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-
Method Detail
-
getParentId
public JmsSessionId getParentId()
-
getConnectionId
public String getConnectionId()
-
getSessionId
public long getSessionId()
-
getValue
public long getValue()
-
compareTo
public int compareTo(JmsConsumerId other)
- Specified by:
compareToin interfaceComparable<JmsConsumerId>
-
-