Package io.github.resilience4j.reactor
Class AbstractSubscriber<T>
java.lang.Object
reactor.core.publisher.BaseSubscriber<T>
io.github.resilience4j.reactor.AbstractSubscriber<T>
- Type Parameters:
T-
- All Implemented Interfaces:
org.reactivestreams.Subscriber<T>,org.reactivestreams.Subscription,reactor.core.CoreSubscriber<T>,reactor.core.Disposable
public abstract class AbstractSubscriber<T>
extends reactor.core.publisher.BaseSubscriber<T>
Heavily inspired by
BaseSubscriber-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description protected reactor.core.CoreSubscriber<? super T>downstreamSubscriber -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSubscriber(reactor.core.CoreSubscriber<? super T> downstreamSubscriber) -
Method Summary
Modifier and Type Method Description reactor.util.context.ContextcurrentContext()protected voidhookOnSubscribe(org.reactivestreams.Subscription subscription)Hook for further processing of onSubscribe's Subscription.java.lang.StringtoString()
-
Field Details
-
Constructor Details
-
Method Details
-
hookOnSubscribe
protected void hookOnSubscribe(org.reactivestreams.Subscription subscription)Hook for further processing of onSubscribe's Subscription.- Overrides:
hookOnSubscribein classreactor.core.publisher.BaseSubscriber<T>- Parameters:
subscription- the subscription to optionally process
-
currentContext
public reactor.util.context.Context currentContext() -
toString
public java.lang.String toString()- Overrides:
toStringin classreactor.core.publisher.BaseSubscriber<T>
-