|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SubscriptionManager
Provides the core publish and subscribe
listening capabilities of the server. The SubscriptionManager
is used to add listeners for when a client publishes or
subscribes.
To retrieve the SubscriptionManager use NIOServer.getSubscriptionManager()
| Method Summary | |
|---|---|
void |
addPublishListener(PublishListener publishListener)
Adds a PublishListener which will be notified
every time a client publishes some data |
void |
addSubscriptionListener(SubscriptionListener subscriptionListener)
Adds a SubscriptionListener which will be notified
every time a client subscribes to a topic |
void |
removePublishListener(PublishListener publishListener)
Removes a PublishListener from being notified of
publish events |
void |
removeSubscriptionListener(SubscriptionListener subscriptionListener)
Removes a SubscriptionListener from being notified of subscription
events |
| Method Detail |
|---|
void addSubscriptionListener(SubscriptionListener subscriptionListener)
SubscriptionListener which will be notified
every time a client subscribes to a topic
A client may choose to subscribe to the same topic multiple times in which case this method will be called multiple times
subscriptionListener - the listener to be notified of subscriptionsvoid removeSubscriptionListener(SubscriptionListener subscriptionListener)
SubscriptionListener from being notified of subscription
events
subscriptionListener - the listener to be removedvoid addPublishListener(PublishListener publishListener)
PublishListener which will be notified
every time a client publishes some data
publishListener - the listener to be notified of each publishvoid removePublishListener(PublishListener publishListener)
PublishListener from being notified of
publish events
publishListener - the listener to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||