Class ForwardingSubscriber<T>
java.lang.Object
com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber<T>
- All Implemented Interfaces:
Flow.Subscriber<T>
- Direct Known Subclasses:
AsyncSubscriberAdapter, ForwardingBodySubscriber, SerializedForwardingSubscriber
A
Subscriber<T> that forwards to a downstream Subscriber<? super T>.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Flow.Subscriber<? super T> delegate()Returns the downstream to which signals are forwarded.voidvoidvoidvoidonSubscribe(Flow.Subscription subscription) toString()
-
Field Details
-
upstream
-
-
Constructor Details
-
ForwardingSubscriber
protected ForwardingSubscriber()
-
-
Method Details
-
delegate
Returns the downstream to which signals are forwarded. -
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<T>
-
onNext
- Specified by:
onNextin interfaceFlow.Subscriber<T>
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<T>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<T>
-
toString
-