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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidonNext(ChangeStreamNotification notification) voidvoidstop()
-
Constructor Details
-
WebSocketNotificationSubscriber
public WebSocketNotificationSubscriber()
-
-
Method Details
-
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<ChangeStreamNotification>
-
onNext
- Specified by:
onNextin interfaceFlow.Subscriber<ChangeStreamNotification>
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<ChangeStreamNotification>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<ChangeStreamNotification>
-
stop
public void stop()
-