Class SubscriberHelpers.PrintDocumentSubscriber
java.lang.Object
org.nustaq.kontraktor.services.rlserver.mongodb.SubscriberHelpers.ObservableSubscriber<T>
org.nustaq.kontraktor.services.rlserver.mongodb.SubscriberHelpers.OperationSubscriber<org.bson.Document>
org.nustaq.kontraktor.services.rlserver.mongodb.SubscriberHelpers.PrintDocumentSubscriber
- All Implemented Interfaces:
org.reactivestreams.Subscriber<org.bson.Document>
- Enclosing class:
- SubscriberHelpers
public static class SubscriberHelpers.PrintDocumentSubscriber extends SubscriberHelpers.OperationSubscriber<org.bson.Document>
A Subscriber that prints the json version of each document
-
Constructor Summary
Constructors Constructor Description PrintDocumentSubscriber() -
Method Summary
Modifier and Type Method Description voidonNext(org.bson.Document document)Methods inherited from class org.nustaq.kontraktor.services.rlserver.mongodb.SubscriberHelpers.OperationSubscriber
onSubscribeMethods inherited from class org.nustaq.kontraktor.services.rlserver.mongodb.SubscriberHelpers.ObservableSubscriber
await, await, get, getError, getReceived, getSubscription, isCompleted, onComplete, onError
-
Constructor Details
-
PrintDocumentSubscriber
public PrintDocumentSubscriber()
-
-
Method Details
-
onNext
public void onNext(org.bson.Document document)- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<org.bson.Document>- Overrides:
onNextin classSubscriberHelpers.ObservableSubscriber<org.bson.Document>
-