Package org.apache.activemq.command
Class SubscriptionInfo
- java.lang.Object
-
- org.apache.activemq.command.SubscriptionInfo
-
- All Implemented Interfaces:
DataStructure
public class SubscriptionInfo extends Object implements DataStructure
Used to represent a durable subscription.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
clientId
static byte
DATA_STRUCTURE_TYPE
protected ActiveMQDestination
destination
protected boolean
noLocal
protected String
selector
protected ActiveMQDestination
subscribedDestination
protected String
subscriptionName
-
Constructor Summary
Constructors Constructor Description SubscriptionInfo()
SubscriptionInfo(String clientId, String subscriptionName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
ActiveMQDestination
getSubscribedDestination()
The destination the client originally subscribed to..String
getSubscriptionName()
int
hashCode()
boolean
isMarshallAware()
boolean
isNoLocal()
void
setClientId(String clientId)
void
setDestination(ActiveMQDestination destination)
void
setNoLocal(boolean noLocal)
void
setSelector(String selector)
void
setSubcriptionName(String subscriptionName)
void
setSubscribedDestination(ActiveMQDestination subscribedDestination)
void
setSubscriptionName(String subscriptionName)
String
toString()
-
-
-
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
-
noLocal
protected boolean noLocal
-
-
Method Detail
-
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureType
in interfaceDataStructure
- 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()
-
setSubcriptionName
public void setSubcriptionName(String subscriptionName)
- Parameters:
subscriptionName
- *
-
getSubscriptionName
public String getSubscriptionName()
-
setSubscriptionName
public void setSubscriptionName(String subscriptionName)
-
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAware
in interfaceDataStructure
-
getSubscribedDestination
public ActiveMQDestination getSubscribedDestination()
The destination the client originally subscribed to.. This may not match the {@see 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)
-
isNoLocal
public boolean isNoLocal()
-
setNoLocal
public void setNoLocal(boolean noLocal)
-
-