public interface SubscriptionRegistry
| Modifier and Type | Method and Description |
|---|---|
MultiValueMap<java.lang.String,java.lang.String> |
findSubscriptions(Message<?> message)
Find all subscriptions that should receive the given message.
|
void |
registerSubscription(Message<?> subscribeMessage)
Register a subscription represented by the given message.
|
void |
unregisterAllSubscriptions(java.lang.String sessionId)
Remove all subscriptions associated with the given sessionId.
|
void |
unregisterSubscription(Message<?> unsubscribeMessage)
Unregister a subscription.
|
void registerSubscription(Message<?> subscribeMessage)
subscribeMessage - the subscription requestvoid unregisterSubscription(Message<?> unsubscribeMessage)
unsubscribeMessage - the request to unsubscribevoid unregisterAllSubscriptions(java.lang.String sessionId)
MultiValueMap<java.lang.String,java.lang.String> findSubscriptions(Message<?> message)
message - the messageMultiValueMap with sessionId-subscriptionId pairs
(possibly empty)