public interface NotificationService
Modifier and Type | Interface and Description |
---|---|
static interface |
NotificationService.Registration
Represents the connection event listener registration.
|
Modifier and Type | Method and Description |
---|---|
Promise<NotificationService.Registration,NeverThrowsException> |
addConnectionEventListener(Consumer<ConnectionEvent> listener)
Registers asynchronously a listener that will be notified on connection/disconnection events.
|
Promise<Subscription,SubscriptionException> |
subscribe(String topic,
NotificationListener listener)
Subscribes (asynchronously) to a given topic, providing a listener
that will be invoked at notification reception time.
|
Promise<Subscription,SubscriptionException> subscribe(String topic, NotificationListener listener)
topic
- topic name to subscribe tolistener
- notification listenerPromise<NotificationService.Registration,NeverThrowsException> addConnectionEventListener(Consumer<ConnectionEvent> listener)
Promise
will be completed once the NotificationService
is connected.listener
- consumer of connection eventsCopyright 2011-2017 ForgeRock AS.