T
- Type of the items emitted by this PublisherSource
.@FunctionalInterface
public interface PublisherSource<T>
PublisherSource.Subscriber
and may or may not terminate
successfully or with an error.
This is a replica of the APIs provided by
Reactive Streams and follows the
Reactive Streams specifications.
All implementations of this PublisherSource
adhere to the rules as specified for a Reactive Streams
Publisher
in
Section 1 of the specifications.
Modifier and Type | Interface and Description |
---|---|
static interface |
PublisherSource.Subscriber<T>
A subscriber of result(s) produced by a
PublisherSource . |
static interface |
PublisherSource.Subscription
A subscription to control the signals emitted from a
PublisherSource to a PublisherSource.Subscriber . |
Modifier and Type | Method and Description |
---|---|
void |
subscribe(PublisherSource.Subscriber<? super T> subscriber)
Subscribe for the result(s) of this
PublisherSource . |
void subscribe(PublisherSource.Subscriber<? super T> subscriber)
PublisherSource
.subscriber
- to subscribe for the result.