public class RedisPublisher extends java.lang.Object implements Publisher, HasSubscribers
| Constructor and Description |
|---|
RedisPublisher(io.lettuce.core.RedisClient redisClient) |
RedisPublisher(java.lang.String redisURL) |
| 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 RedisPublisher(io.lettuce.core.RedisClient redisClient)
public RedisPublisher(java.lang.String redisURL)
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