T
- Type of the items emitted by this SubscribablePublisher
.public abstract class SubscribablePublisher<T> extends Publisher<T> implements PublisherSource<T>
Publisher
that is also a PublisherSource
and hence can be subscribed.
Typically, this will be used to implement a Publisher
that does not require an additional allocation when
converting to a PublisherSource
via SourceAdapters.toSource(Publisher)
.
PublisherSource.Subscriber<T>, PublisherSource.Subscription
Constructor and Description |
---|
SubscribablePublisher() |
Modifier and Type | Method and Description |
---|---|
void |
subscribe(PublisherSource.Subscriber<? super T> subscriber)
Subscribe for the result(s) of this
PublisherSource . |
afterCancel, afterFinally, afterOnComplete, afterOnError, afterOnNext, afterOnSubscribe, afterRequest, afterSubscriber, afterSubscription, beforeCancel, beforeFinally, beforeOnComplete, beforeOnError, beforeOnNext, beforeOnSubscribe, beforeRequest, beforeSubscriber, beforeSubscription, collect, concat, concat, concat, defer, empty, failed, filter, firstOrElse, firstOrError, flatMapCompletable, flatMapCompletable, flatMapCompletableDelayError, flatMapCompletableDelayError, flatMapConcatIterable, flatMapMergeSingle, flatMapMergeSingle, flatMapMergeSingleDelayError, flatMapMergeSingleDelayError, forEach, from, from, fromBlockingIterable, fromInputStream, fromIterable, groupBy, groupBy, groupToMany, groupToMany, handleSubscribe, idleTimeout, idleTimeout, idleTimeout, idleTimeout, ignoreElements, liftAsync, liftSync, liftSyncToSingle, map, multicastToExactly, multicastToExactly, never, publishAndSubscribeOn, publishAndSubscribeOnOverride, publishOn, publishOnOverride, recoverWith, repeat, repeatWhen, retry, retryWhen, subscribeInternal, subscribeOn, subscribeOnOverride, subscribeShareContext, takeAtMost, takeUntil, takeWhile, toCompletionStage, toCompletionStage, toFuture, toFuture, toInputStream, toInputStream, toIterable, toIterable, whenCancel, whenFinally, whenOnComplete, whenOnError, whenOnNext, whenOnSubscribe, whenRequest, whenSubscriber, whenSubscription
public final void subscribe(PublisherSource.Subscriber<? super T> subscriber)
PublisherSource
PublisherSource
.subscribe
in interface PublisherSource<T>
subscriber
- to subscribe for the result.