@FunctionalInterface public interface NotificationService
Modifier and Type | Method and Description |
---|---|
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 listenerCopyright 2011-2017 ForgeRock AS.