Module methanol
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 com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber
upstream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
onSubscribe
(Flow.Subscription subscription) Methods inherited from class com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber
downstream
-
Constructor Details
-
SerializedForwardingSubscriber
protected SerializedForwardingSubscriber()
-
-
Method Details
-
onSubscribe
- Specified by:
onSubscribe
in interfaceFlow.Subscriber<T>
- Overrides:
onSubscribe
in classForwardingSubscriber<T>
-
onNext
- Specified by:
onNext
in interfaceFlow.Subscriber<T>
- Overrides:
onNext
in classForwardingSubscriber<T>
-
onError
- Specified by:
onError
in interfaceFlow.Subscriber<T>
- Overrides:
onError
in classForwardingSubscriber<T>
-
onComplete
public void onComplete()- Specified by:
onComplete
in interfaceFlow.Subscriber<T>
- Overrides:
onComplete
in classForwardingSubscriber<T>
-