Class 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 Detail

      • ChangeStreamSubscriber

        public ChangeStreamSubscriber​(SessionKey sessionKey)
    • Method Detail

      • onSubscribe

        public void onSubscribe​(org.reactivestreams.Subscription s)
        Specified by:
        onSubscribe in interface org.reactivestreams.Subscriber<com.mongodb.client.model.changestream.ChangeStreamDocument>
      • onNext

        public void onNext​(com.mongodb.client.model.changestream.ChangeStreamDocument notification)
        Specified by:
        onNext in interface org.reactivestreams.Subscriber<com.mongodb.client.model.changestream.ChangeStreamDocument>
      • onError

        public void onError​(Throwable t)
        Specified by:
        onError in interface org.reactivestreams.Subscriber<com.mongodb.client.model.changestream.ChangeStreamDocument>
      • onComplete

        public void onComplete()
        Specified by:
        onComplete in interface org.reactivestreams.Subscriber<com.mongodb.client.model.changestream.ChangeStreamDocument>
      • stop

        public void stop()