org.apache.activemq.command
Class SubscriptionInfo
java.lang.Object
org.apache.activemq.command.SubscriptionInfo
- All Implemented Interfaces:
- DataStructure
public class SubscriptionInfo
- extends java.lang.Object
- implements DataStructure
Used to represent a durable subscription.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
subscribedDestination
protected ActiveMQDestination subscribedDestination
destination
protected ActiveMQDestination destination
clientId
protected java.lang.String clientId
subscriptionName
protected java.lang.String subscriptionName
selector
protected java.lang.String selector
SubscriptionInfo
public SubscriptionInfo()
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureType
in interface DataStructure
- Returns:
- The type of the data structure
getClientId
public java.lang.String getClientId()
setClientId
public void setClientId(java.lang.String clientId)
getDestination
public ActiveMQDestination getDestination()
- This is the a resolved destination that the subscription is receiving
messages from. This will never be a pattern or a composite destination.
setDestination
public void setDestination(ActiveMQDestination destination)
getSelector
public java.lang.String getSelector()
setSelector
public void setSelector(java.lang.String selector)
getSubcriptionName
public java.lang.String getSubcriptionName()
setSubcriptionName
public void setSubcriptionName(java.lang.String subscriptionName)
- Parameters:
subscriptionName
- *
getSubscriptionName
public java.lang.String getSubscriptionName()
setSubscriptionName
public void setSubscriptionName(java.lang.String subscriptionName)
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAware
in interface DataStructure
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getSubscribedDestination
public ActiveMQDestination getSubscribedDestination()
- The destination the client originally subscribed to.. This may not match
the
getDestination
method if the subscribed destination uses
patterns or composites.
If the subscribed destinationis not set, this just ruturns the
desitination.
setSubscribedDestination
public void setSubscribedDestination(ActiveMQDestination subscribedDestination)
Copyright © 2005-2015. All Rights Reserved.