Class WebSocketNotificationSubscriber
- java.lang.Object
-
- org.restheart.mongodb.handlers.changestreams.WebSocketNotificationSubscriber
-
- All Implemented Interfaces:
Flow.Subscriber<ChangeStreamNotification>
public class WebSocketNotificationSubscriber extends Object implements Flow.Subscriber<ChangeStreamNotification>
- Author:
- omartrasatti
-
-
Constructor Summary
Constructors Constructor Description WebSocketNotificationSubscriber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete()voidonError(Throwable t)voidonNext(ChangeStreamNotification notification)voidonSubscribe(Flow.Subscription s)voidstop()
-
-
-
Method Detail
-
onSubscribe
public void onSubscribe(Flow.Subscription s)
- Specified by:
onSubscribein interfaceFlow.Subscriber<ChangeStreamNotification>
-
onNext
public void onNext(ChangeStreamNotification notification)
- Specified by:
onNextin interfaceFlow.Subscriber<ChangeStreamNotification>
-
onError
public void onError(Throwable t)
- Specified by:
onErrorin interfaceFlow.Subscriber<ChangeStreamNotification>
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceFlow.Subscriber<ChangeStreamNotification>
-
stop
public void stop()
-
-