public class InMemoryPublisher extends java.lang.Object implements Publisher, HasSubscribers
| Constructor and Description |
|---|
InMemoryPublisher() |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(Message message)
Publish the publisher to all subscribers
|
Subscription |
subscribe(java.lang.String aggregation,
Subscriber subscriber)
Add a new subscription to notifications channel associated with the given aggregation.
|
public void publish(Message message)
Publisherpublic Subscription subscribe(java.lang.String aggregation, Subscriber subscriber)
HasSubscriberssubscribe in interface HasSubscribersaggregation - The aggregation for the stream eventssubscriber - Declares the function to be called to handle new messages