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 Constructor Description ChangeStreamSubscriber(SessionKey sessionKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete()voidonError(Throwable t)voidonNext(com.mongodb.client.model.changestream.ChangeStreamDocument notification)voidonSubscribe(org.reactivestreams.Subscription s)voidstop()
-
-
-
Constructor Detail
-
ChangeStreamSubscriber
public ChangeStreamSubscriber(SessionKey sessionKey)
-
-
Method Detail
-
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
public void onError(Throwable t)
- 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()
-
-