T - Type of items received by this Subscriber.public static interface PublisherSource.Subscriber<T>
PublisherSource.
This is a replica of the APIs provided by
Reactive Streams and follows the
Reactive Streams specifications.
All implementations of this Subscriber adhere to the rules as specified for a Reactive Streams
Subscriber in
Section 2 of the specifications.
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete()
Callback to signal completion of the
PublisherSource for this Subscriber. |
void |
onError(java.lang.Throwable t)
Callback to receive an
error for this Subscriber. |
void |
onNext(T t)
Callback to receive a
data element for this Subscriber. |
void |
onSubscribe(PublisherSource.Subscription subscription)
Callback to receive a
PublisherSource.Subscription for this Subscriber. |
void onSubscribe(PublisherSource.Subscription subscription)
PublisherSource.Subscription for this Subscriber.
See Reactive Streams specifications for the rules about how and when this method will be invoked.
subscription - PublisherSource.Subscription for this Subscriber.void onNext(@Nullable
T t)
data element for this Subscriber.
See Reactive Streams specifications for the rules about how and when this method will be invoked.
t - A data element.void onError(java.lang.Throwable t)
error for this Subscriber.
See Reactive Streams specifications for the rules about how and when this method will be invoked.
t - error for this Subscriber.void onComplete()
PublisherSource for this Subscriber.
See Reactive Streams specifications for the rules about how and when this method will be invoked.