Public Member Functions | |
SubscriptionHandle (TopicSubscriber subscriber, String topic, String selector, MessageListener listener) | |
SubscriptionHandle () | |
void | setSession (TopicSession session) |
TopicSession | getSession () |
void | setSubscriber (TopicSubscriber subscriber) |
TopicSubscriber | getSubscriber () |
void | setSubscriptionListener (MessageListener listener) |
MessageListener | getSubscriptionListener () |
void | setSubscriptionSelector (String selector) |
String | getSubscriptionSelector () |
long | getSubscriptionToken () |
void | setSubscriptionTopic (String topic) |
String | getSubscriptionTopic () |
boolean | equals (Object object) |
Private Attributes | |
Boolean | subscriptionTokenGeneratorLock = Boolean.TRUE |
MessageListener | listener = null |
String | selector = null |
String | topic = null |
TopicSession | session = null |
TopicSubscriber | subscriber = null |
long | subscriptionToken = 0 |
Static Private Attributes | |
long | subscriptionTokenGenerator = 1 |
|
Constructor for the SubscriptionHandle class.
|
|
Default constructor for the SubscriptionHandle class. |
|
Method equals
|
|
Return the TopicSession object.
|
|
Return the TopicSubscriber object.
|
|
Return MessageListener associated with the subscription.
|
|
Return the String defining the filter associated with the subscription.
|
|
Return the key identifying the subscription.
|
|
Return the String that identifies the subscribed topic.
|
|
Set the TopicSession Object
|
|
Set the TopicSubscriber Object
|
|
Set the subscription listener
|
|
Set the subscription selector
|
|
Set the topic name
|
|
The message listener associated to the subscription. |
|
The selector associated to the subscription. |
|
The TopicSession object associated to the subscription. |
|
The TopicSubscriber object associated to the subscription. |
|
The unique key that identifies a specific subscription. |
|
The unique identifier generator for the subscriptions. |
|
|
|
The topic associated to the subscription. |