Class AbstractObserver<T>
java.lang.Object
io.github.resilience4j.rxjava3.AbstractDisposable
io.github.resilience4j.rxjava3.AbstractObserver<T>
- All Implemented Interfaces:
io.reactivex.rxjava3.core.Observer<T>, io.reactivex.rxjava3.disposables.Disposable
- Direct Known Subclasses:
ObserverBulkhead.BulkheadObserver, ObserverCircuitBreaker.CircuitBreakerObserver, ObserverRateLimiter.RateLimiterObserver
public abstract class AbstractObserver<T>
extends AbstractDisposable
implements io.reactivex.rxjava3.core.Observer<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.reactivex.rxjava3.core.Observer<? super T> protected final AtomicBoolean -
Constructor Summary
ConstructorsConstructorDescriptionAbstractObserver(io.reactivex.rxjava3.core.Observer<? super T> downstreamObserver) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidprotected abstract voidprotected voidhookOnNext(T value) protected voidvoidvoidvoidMethods inherited from class AbstractDisposable
dispose, hookOnCancel, isDisposed, onSubscribe, toString, whenNotCompleted, whenNotDisposedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.reactivex.rxjava3.core.Observer
onSubscribe
-
Field Details
-
eventWasEmitted
-
downstreamObserver
-
-
Constructor Details
-
AbstractObserver
-
-
Method Details
-
hookOnSubscribe
protected void hookOnSubscribe()- Specified by:
hookOnSubscribein classAbstractDisposable
-
onNext
-
hookOnNext
-
onError
-
hookOnError
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceio.reactivex.rxjava3.core.Observer<T>
-
hookOnComplete
protected abstract void hookOnComplete()
-