Class ChangeStreamSubscriber
java.lang.Object
org.restheart.mongodb.handlers.changestreams.ChangeStreamSubscriber
- All Implemented Interfaces:
org.reactivestreams.Subscriber<com.mongodb.client.model.changestream.ChangeStreamDocument<?>>
public class ChangeStreamSubscriber
extends Object
implements org.reactivestreams.Subscriber<com.mongodb.client.model.changestream.ChangeStreamDocument<?>>
- Author:
- omartrasatti
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidonNext(com.mongodb.client.model.changestream.ChangeStreamDocument<?> notification)voidonSubscribe(org.reactivestreams.Subscription s)voidstop()
-
Constructor Details
-
ChangeStreamSubscriber
-
-
Method Details
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<com.mongodb.client.model.changestream.ChangeStreamDocument<?>>
-
onNext
public void onNext(com.mongodb.client.model.changestream.ChangeStreamDocument<?> notification)- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<com.mongodb.client.model.changestream.ChangeStreamDocument<?>>
-
onError
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<com.mongodb.client.model.changestream.ChangeStreamDocument<?>>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<com.mongodb.client.model.changestream.ChangeStreamDocument<?>>
-
stop
public void stop()
-