public class SubscriptionHandle
extends java.lang.Object
| Constructor and Description |
|---|
SubscriptionHandle()
Default constructor for the SubscriptionHandle class.
|
SubscriptionHandle(TopicSubscriber subscriber,
java.lang.String topic,
java.lang.String selector,
MessageListener listener)
Constructor for the SubscriptionHandle class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Method equals
|
TopicSession |
getSession()
Return the TopicSession object.
|
TopicSubscriber |
getSubscriber()
Return the TopicSubscriber object.
|
MessageListener |
getSubscriptionListener()
Return MessageListener associated with the subscription.
|
java.lang.String |
getSubscriptionSelector()
Return the String defining the filter associated with the subscription.
|
long |
getSubscriptionToken()
Return the key identifying the subscription.
|
java.lang.String |
getSubscriptionTopic()
Return the String that identifies the subscribed topic.
|
void |
setSession(TopicSession session)
Set the TopicSession Object
|
void |
setSubscriber(TopicSubscriber subscriber)
Set the TopicSubscriber Object
|
void |
setSubscriptionListener(MessageListener listener)
Set the subscription listener
|
void |
setSubscriptionSelector(java.lang.String selector)
Set the subscription selector
|
void |
setSubscriptionTopic(java.lang.String topic)
Set the topic name
|
public SubscriptionHandle(TopicSubscriber subscriber,
java.lang.String topic,
java.lang.String selector,
MessageListener listener)
subscriber - the TopicSubscriber instance.topic - selector - listener - public SubscriptionHandle()
public void setSession(TopicSession session)
session - the TopicSession instancepublic TopicSession getSession()
public void setSubscriber(TopicSubscriber subscriber)
subscriber - the TopicSubscriber instancepublic TopicSubscriber getSubscriber()
public void setSubscriptionListener(MessageListener listener)
listener - the subscription listenerpublic MessageListener getSubscriptionListener()
public void setSubscriptionSelector(java.lang.String selector)
selector - the subscription selectorpublic java.lang.String getSubscriptionSelector()
public long getSubscriptionToken()
public void setSubscriptionTopic(java.lang.String topic)
topic - the topic namepublic java.lang.String getSubscriptionTopic()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject -