T
- Type of the result of this SingleSource
.@FunctionalInterface
public interface SingleSource<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
SingleSource.Processor<T,R>
A
SingleSource.Processor represents a processing stage that is both a SingleSource and a SingleSource.Subscriber
and obeys the contracts of both. |
static interface |
SingleSource.Subscriber<T>
Subscriber of the outcome of a
SingleSource . |
Modifier and Type | Method and Description |
---|---|
void |
subscribe(SingleSource.Subscriber<? super T> subscriber)
Subscribe for the result of this
SingleSource . |
void subscribe(SingleSource.Subscriber<? super T> subscriber)
SingleSource
.subscriber
- to subscribe for the result.PublisherSource.subscribe(PublisherSource.Subscriber)