org.apache.activemq.command
Class SubscriptionInfo

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

public class SubscriptionInfo
extends Object
implements DataStructure

Used to represent a durable subscription.

Version:
$Revision: 1.6 $

Field Summary
protected  String clientId
           
static byte DATA_STRUCTURE_TYPE
           
protected  ActiveMQDestination destination
           
protected  String selector
           
protected  ActiveMQDestination subscribedDestination
           
protected  String subscriptionName
           
 
Constructor Summary
SubscriptionInfo()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getClientId()
           
 byte getDataStructureType()
           
 ActiveMQDestination getDestination()
          This is the a resolved destination that the subscription is receiving messages from.
 String getSelector()
           
 String getSubcriptionName()
          Deprecated.  
 ActiveMQDestination getSubscribedDestination()
          The destination the client originally subscribed to..
 String getSubscriptionName()
           
 int hashCode()
           
 boolean isMarshallAware()
           
 void setClientId(String clientId)
           
 void setDestination(ActiveMQDestination destination)
           
 void setSelector(String selector)
           
 void setSubcriptionName(String subscriptionName)
          Deprecated.  
 void setSubscribedDestination(ActiveMQDestination subscribedDestination)
           
 void setSubscriptionName(String subscriptionName)
           
 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

subscribedDestination

protected ActiveMQDestination subscribedDestination

destination

protected ActiveMQDestination destination

clientId

protected String clientId

subscriptionName

protected String subscriptionName

selector

protected String selector
Constructor Detail

SubscriptionInfo

public SubscriptionInfo()
Method Detail

getDataStructureType

public byte getDataStructureType()
Specified by:
getDataStructureType in interface DataStructure
Returns:
The type of the data structure

getClientId

public String getClientId()

setClientId

public void setClientId(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 String getSelector()

setSelector

public void setSelector(String selector)

getSubcriptionName

public String getSubcriptionName()
Deprecated. 


setSubcriptionName

public void setSubcriptionName(String subscriptionName)
Deprecated. 

Parameters:
subscriptionName - *

getSubscriptionName

public String getSubscriptionName()

setSubscriptionName

public void setSubscriptionName(String subscriptionName)

isMarshallAware

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

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class 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 © 2008. All Rights Reserved.