Package org.apache.activemq.command
Class SubscriptionInfo
java.lang.Object
org.apache.activemq.command.SubscriptionInfo
- All Implemented Interfaces:
DataStructure
Used to represent a durable subscription.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
static final byte
protected ActiveMQDestination
protected boolean
protected String
protected ActiveMQDestination
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
byte
This is the a resolved destination that the subscription is receiving messages from.The destination the client originally subscribed to..int
hashCode()
boolean
boolean
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) toString()
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
subscribedDestination
-
destination
-
clientId
-
subscriptionName
-
selector
-
noLocal
protected boolean noLocal
-
-
Constructor Details
-
SubscriptionInfo
public SubscriptionInfo() -
SubscriptionInfo
-
-
Method Details
-
getDataStructureType
public byte getDataStructureType()- Specified by:
getDataStructureType
in interfaceDataStructure
- Returns:
- The type of the data structure
-
getClientId
-
setClientId
-
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
-
getSelector
-
setSelector
-
getSubcriptionName
-
setSubcriptionName
- Parameters:
subscriptionName
- *
-
getSubscriptionName
-
setSubscriptionName
-
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAware
in interfaceDataStructure
-
toString
-
hashCode
public int hashCode() -
equals
-
getSubscribedDestination
The destination the client originally subscribed to.. This may not match the method if the subscribed destination uses patterns or composites. If the subscribed destinationis not set, this just ruturns the desitination. -
setSubscribedDestination
-
isNoLocal
public boolean isNoLocal() -
setNoLocal
public void setNoLocal(boolean noLocal)
-