public interface SubscriptionRegistry
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
findSubscriptions(PubSubMessage pubSubMessage)
Find all WebSocket session ids that should receive the given message.
|
boolean |
hasSubscriptions()
Returns true if there are any subscription stored in the registry
|
void |
registerSubscription(SubscribeMessage subscribeMessage)
Register a subscription represented by the given message.
|
void |
unregisterSession(String webSocketSessionId)
Unregister all subscriptions of the given WebSocket session
|
void |
unregisterSubscription(UnsubscribeMessage unsubscribeMessage)
Unregister a subscription.
|
void registerSubscription(SubscribeMessage subscribeMessage)
subscribeMessage - the subscription requestvoid unregisterSubscription(UnsubscribeMessage unsubscribeMessage)
unsubscribeMessage - the request to unsubscribevoid unregisterSession(String webSocketSessionId)
Set<String> findSubscriptions(PubSubMessage pubSubMessage)
message - the messageSet of WebSocket session ids, possibly empty.boolean hasSubscriptions()
Copyright © 2014–2017. All rights reserved.