class TopicSubscription extends Object
TopicSubscription
class holds the parameters of a proxy's
subscription to a topic.Modifier and Type | Field and Description |
---|---|
private String |
lastSelector
Last built selector.
|
private Map |
subs
Table of subscriptions selectors.
|
Constructor and Description |
---|
TopicSubscription()
Creates a
TopicSubscription instance. |
Modifier and Type | Method and Description |
---|---|
(package private) String |
buildSelector()
Returns a selector built from the subscriptions' selectors.
|
(package private) String |
getLastSelector()
Returns the last selector value.
|
(package private) Iterator |
getNames()
Returns the names of the subscriptions.
|
(package private) boolean |
isEmpty()
Returns
true if the subscriptions table is empty. |
(package private) void |
putSubscription(String name,
String selector)
Adds a new subscription or updates an existing one.
|
(package private) void |
removeSubscription(String name)
Removes a subscription.
|
(package private) void |
setLastSelector(String selector)
Sets the last selector value.
|
(package private) int |
size()
Returns the number of subscriptions.
|
private Map subs
private String lastSelector
void putSubscription(String name, String selector)
name
- Subscription name.selector
- Selector.void removeSubscription(String name)
name
- Subscription name.boolean isEmpty()
true
if the subscriptions table is empty.String buildSelector()
void setLastSelector(String selector)
String getLastSelector()
Iterator getNames()
int size()
Copyright © 2018 ScalAgent D.T.. All Rights Reserved.