Package org.objectweb.joram.mom.proxies
Class TopicSubscription
- java.lang.Object
-
- org.objectweb.joram.mom.proxies.TopicSubscription
-
class TopicSubscription extends Object
TheTopicSubscriptionclass holds the parameters of a proxy's subscription to a topic.
-
-
Constructor Summary
Constructors Constructor Description TopicSubscription()Creates aTopicSubscriptioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) StringbuildSelector()Returns a selector built from the subscriptions' selectors.(package private) StringgetLastSelector()Returns the last selector value.(package private) Iterator<String>getNames()Returns the names of the subscriptions.(package private) booleanisEmpty()Returnstrueif the subscriptions table is empty.(package private) voidputSubscription(String name, String selector)Adds a new subscription or updates an existing one.(package private) voidremoveSubscription(String name)Removes a subscription.(package private) voidsetLastSelector(String selector)Sets the last selector value.(package private) intsize()Returns the number of subscriptions.
-
-
-
Method Detail
-
putSubscription
void putSubscription(String name, String selector)
Adds a new subscription or updates an existing one.- Parameters:
name- Subscription name.selector- Selector.
-
removeSubscription
void removeSubscription(String name)
Removes a subscription.- Parameters:
name- Subscription name.
-
isEmpty
boolean isEmpty()
Returnstrueif the subscriptions table is empty.
-
buildSelector
String buildSelector()
Returns a selector built from the subscriptions' selectors.
-
setLastSelector
void setLastSelector(String selector)
Sets the last selector value.
-
getLastSelector
String getLastSelector()
Returns the last selector value.
-
size
int size()
Returns the number of subscriptions.
-
-