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:
GroupedPublisher,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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAPublisherSource.Processorrepresents a processing stage that is both aPublisherSourceand aPublisherSource.Subscriberand obeys the contracts of both.static interfaceA subscriber of result(s) produced by aPublisherSource.static interfaceA subscription to control the signals emitted from aPublisherSourceto aPublisherSource.Subscriber. -
Method Summary
Modifier and TypeMethodDescriptionvoidsubscribe(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.
-