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
-
Method Summary
Modifier and TypeMethodDescriptiongetError()
getValue()
protected void
hookFinally
(reactor.core.publisher.SignalType type) protected void
hookOnError
(Throwable throwable) protected void
hookOnNext
(T value) Methods inherited from class reactor.core.publisher.BaseSubscriber
cancel, dispose, hookOnCancel, hookOnComplete, hookOnSubscribe, isDisposed, onComplete, onError, onNext, onSubscribe, request, requestUnbounded, toString, upstream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface reactor.core.CoreSubscriber
currentContext
-
Constructor Details
-
BlockingAdapterSubscriber
public BlockingAdapterSubscriber()
-
-
Method Details
-
hookOnNext
- Overrides:
hookOnNext
in classreactor.core.publisher.BaseSubscriber<T>
-
hookOnError
- Overrides:
hookOnError
in classreactor.core.publisher.BaseSubscriber<T>
-
getValue
-
block
- Throws:
InterruptedException
TimeoutException
-
getError
-
hookFinally
protected void hookFinally(reactor.core.publisher.SignalType type) - Overrides:
hookFinally
in classreactor.core.publisher.BaseSubscriber<T>
-
await
public BlockingAdapterSubscriber<T> await(long timeout, TimeUnit unit) throws TimeoutException, InterruptedException - Throws:
TimeoutException
InterruptedException
-