- java.lang.Object
-
- com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber<T>
-
- All Implemented Interfaces:
java.util.concurrent.Flow.Subscriber<T>
- Direct Known Subclasses:
AsyncSubscriberAdapter,ForwardingBodySubscriber,SerializedForwardingSubscriber
public abstract class ForwardingSubscriber<T> extends java.lang.Object implements java.util.concurrent.Flow.Subscriber<T>ASubscriber<T>that forwards to a downstreamSubscriber<? super T>.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedForwardingSubscriber()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.concurrent.Flow.Subscriber<? super T>delegate()Returns the downstream to which signals are forwarded.voidonComplete()voidonError(java.lang.Throwable throwable)voidonNext(T item)voidonSubscribe(java.util.concurrent.Flow.Subscription subscription)java.lang.StringtoString()
-
-
-
Field Detail
-
upstream
protected final Upstream upstream
-
-
Method Detail
-
delegate
protected abstract java.util.concurrent.Flow.Subscriber<? super T> delegate()
Returns the downstream to which signals are forwarded.
-
onSubscribe
public void onSubscribe(java.util.concurrent.Flow.Subscription subscription)
- Specified by:
onSubscribein interfacejava.util.concurrent.Flow.Subscriber<T>
-
onNext
public void onNext(T item)
- Specified by:
onNextin interfacejava.util.concurrent.Flow.Subscriber<T>
-
onError
public void onError(java.lang.Throwable throwable)
- Specified by:
onErrorin interfacejava.util.concurrent.Flow.Subscriber<T>
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfacejava.util.concurrent.Flow.Subscriber<T>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-