public interface SubscriptionRegistry
| Modifier and Type | Method and Description |
|---|---|
int |
countSubscribers(String event)
Get the number of subscribers to a particular event
|
Set<String> |
getAllEvents()
Get a collection of all registered events
|
Map<String,Set<String>> |
getAllSubscriptions()
Get a map that maps events to a collection of clientIds
|
Set<String> |
getSubscribers(String event)
Get all subscribers to a particular event
|
boolean |
hasSubscribers(String event)
Check if a particular event has subscribers
|
boolean |
isClientSubscribedToEvent(String clientId,
String eventName) |
void |
subscribe(String clientId,
String event) |
void |
unsubscribe(String clientId,
String event) |
Set<String> getAllEvents()
Map<String,Set<String>> getAllSubscriptions()
Set<String> getSubscribers(String event)
int countSubscribers(String event)
boolean hasSubscribers(String event)
Copyright © 2016–2020. All rights reserved.