Package io.servicetalk.concurrent
Interface PublisherSource<T>
- Type Parameters:
T
- Type of the items emitted by thisPublisherSource
.
- All Known Subinterfaces:
PublisherSource.Processor<T,
R>
- All Known Implementing Classes:
SourceWrappers.PublisherSource
,SubscribablePublisher
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An asynchronous computation that emits zero or more items to its
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
APublisherSource.Processor
represents a processing stage that is both aPublisherSource
and aPublisherSource.Subscriber
and obeys the contracts of both.static interface
A subscriber of result(s) produced by aPublisherSource
.static interface
A subscription to control the signals emitted from aPublisherSource
to aPublisherSource.Subscriber
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
subscribe
(PublisherSource.Subscriber<? super T> subscriber) Subscribe for the result(s) of thisPublisherSource
.
-
Method Details
-
subscribe
Subscribe for the result(s) of thisPublisherSource
.- Parameters:
subscriber
- to subscribe for the result.
-