Package me.ahoo.cosid.mongo.reactive
Class BlockingAdapterSubscriber<T>
java.lang.Object
reactor.core.publisher.BaseSubscriber<T>
me.ahoo.cosid.mongo.reactive.BlockingAdapterSubscriber<T>
- All Implemented Interfaces:
org.reactivestreams.Subscriber<T>,org.reactivestreams.Subscription,reactor.core.CoreSubscriber<T>,reactor.core.Disposable
public class BlockingAdapterSubscriber<T>
extends reactor.core.publisher.BaseSubscriber<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface reactor.core.Disposable
reactor.core.Disposable.Composite, reactor.core.Disposable.Swap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()getValue()protected voidhookFinally(reactor.core.publisher.SignalType type) protected voidhookOnError(Throwable throwable) protected voidhookOnNext(T value) Methods inherited from class reactor.core.publisher.BaseSubscriber
cancel, dispose, hookOnCancel, hookOnComplete, hookOnSubscribe, isDisposed, onComplete, onError, onNext, onSubscribe, request, requestUnbounded, toString, upstreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface reactor.core.CoreSubscriber
currentContext
-
Constructor Details
-
BlockingAdapterSubscriber
public BlockingAdapterSubscriber()
-
-
Method Details
-
hookOnNext
- Overrides:
hookOnNextin classreactor.core.publisher.BaseSubscriber<T>
-
hookOnError
- Overrides:
hookOnErrorin classreactor.core.publisher.BaseSubscriber<T>
-
getValue
-
block
- Throws:
InterruptedExceptionTimeoutException
-
getError
-
hookFinally
protected void hookFinally(reactor.core.publisher.SignalType type) - Overrides:
hookFinallyin classreactor.core.publisher.BaseSubscriber<T>
-
await
public BlockingAdapterSubscriber<T> await(long timeout, TimeUnit unit) throws TimeoutException, InterruptedException - Throws:
TimeoutExceptionInterruptedException
-