public interface SourceNotifier extends Serializable
SourceEvents.
The service provides implementations of this interface and sets them on
Sources, and subscribes with them. Plugins may then use them to fire
events that the service should become aware of.
While the service is the primary subscriber to notifications of source events, plugin components may also acts as subscribers for increased decoupling from event producers.
SourceEvent,
Source.notifier()| Modifier and Type | Method and Description |
|---|---|
void |
notify(SourceEvent topic)
Notifies subscribers of a
SourceEvent event. |
void |
subscribe(SourceConsumer consumer,
SourceEvent... events)
Subscribes a
SourceConsumer to one or more SourceEvents. |
void subscribe(SourceConsumer consumer, SourceEvent... events)
SourceConsumer to one or more SourceEvents.consumer - the consumerevents - the eventsvoid notify(SourceEvent topic)
SourceEvent event.topic - the topicCopyright © 2018. All Rights Reserved.