org.objectweb.joram.mom.proxies
Class TopicSubscription

java.lang.Object
  extended by org.objectweb.joram.mom.proxies.TopicSubscription

 class TopicSubscription
extends java.lang.Object

The TopicSubscription class holds the parameters of a proxy's subscription to a topic.


Field Summary
private  java.lang.String lastSelector
          Last built selector.
private  java.util.Map subs
          Table of subscriptions selectors.
 
Constructor Summary
TopicSubscription()
          Creates a TopicSubscription instance.
 
Method Summary
(package private)  java.lang.String buildSelector()
          Returns a selector built from the subscriptions' selectors.
(package private)  java.lang.String getLastSelector()
          Returns the last selector value.
(package private)  java.util.Iterator getNames()
          Returns the names of the subscriptions.
(package private)  boolean isEmpty()
          Returns true if the subscriptions table is empty.
(package private)  void putSubscription(java.lang.String name, java.lang.String selector)
          Adds a new subscription or updates an existing one.
(package private)  void removeSubscription(java.lang.String name)
          Removes a subscription.
(package private)  void setLastSelector(java.lang.String selector)
          Sets the last selector value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subs

private java.util.Map subs
Table of subscriptions selectors.


lastSelector

private java.lang.String lastSelector
Last built selector.

Constructor Detail

TopicSubscription

TopicSubscription()
Creates a TopicSubscription instance.

Method Detail

putSubscription

void putSubscription(java.lang.String name,
                     java.lang.String selector)
Adds a new subscription or updates an existing one.

Parameters:
name - Subscription name.
selector - Selector.

removeSubscription

void removeSubscription(java.lang.String name)
Removes a subscription.

Parameters:
name - Subscription name.

isEmpty

boolean isEmpty()
Returns true if the subscriptions table is empty.


buildSelector

java.lang.String buildSelector()
Returns a selector built from the subscriptions' selectors.


setLastSelector

void setLastSelector(java.lang.String selector)
Sets the last selector value.


getLastSelector

java.lang.String getLastSelector()
Returns the last selector value.


getNames

java.util.Iterator getNames()
Returns the names of the subscriptions.



Copyright © 2010 ScalAgent D.T.. All Rights Reserved.