Class SerializedForwardingSubscriber<T>
java.lang.Object
com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber<T>
com.github.mizosoft.methanol.internal.flow.SerializedForwardingSubscriber<T>
- All Implemented Interfaces:
Flow.Subscriber<T>
- Direct Known Subclasses:
TimeoutSubscriber
A forwarding subscriber that ensures the delegate isn't called concurrently.
-
Field Summary
Fields inherited from class ForwardingSubscriber
upstream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidonSubscribe(Flow.Subscription subscription) Methods inherited from class ForwardingSubscriber
delegate, toString
-
Constructor Details
-
SerializedForwardingSubscriber
protected SerializedForwardingSubscriber()
-
-
Method Details
-
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<T>- Overrides:
onSubscribein classForwardingSubscriber<T>
-
onNext
- Specified by:
onNextin interfaceFlow.Subscriber<T>- Overrides:
onNextin classForwardingSubscriber<T>
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<T>- Overrides:
onErrorin classForwardingSubscriber<T>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<T>- Overrides:
onCompletein classForwardingSubscriber<T>
-