Class SubscribablePublisher<T>
- java.lang.Object
-
- io.servicetalk.concurrent.api.Publisher<T>
-
- io.servicetalk.concurrent.api.internal.SubscribablePublisher<T>
-
- Type Parameters:
T- Type of the items emitted by thisSubscribablePublisher.
- All Implemented Interfaces:
PublisherSource<T>
- Direct Known Subclasses:
SourceWrappers.PublisherSource
public abstract class SubscribablePublisher<T> extends Publisher<T> implements PublisherSource<T>
APublisherthat is also aPublisherSourceand hence can be subscribed.Typically, this will be used to implement a
Publisherthat does not require an additional allocation when converting to aPublisherSourceviaSourceAdapters.toSource(Publisher).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.servicetalk.concurrent.PublisherSource
PublisherSource.Processor<T,R>, PublisherSource.Subscriber<T>, PublisherSource.Subscription
-
-
Constructor Summary
Constructors Constructor Description SubscribablePublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsubscribe(PublisherSource.Subscriber<? super T> subscriber)Subscribe for the result(s) of thisPublisherSource.-
Methods inherited from class io.servicetalk.concurrent.api.Publisher
afterCancel, afterFinally, afterFinally, afterOnComplete, afterOnError, afterOnNext, afterOnSubscribe, afterRequest, afterSubscriber, afterSubscription, beforeCancel, beforeFinally, beforeFinally, beforeOnComplete, beforeOnError, beforeOnNext, beforeOnSubscribe, beforeRequest, beforeSubscriber, beforeSubscription, buffer, collect, completableOrError, concat, concat, concat, defer, empty, failed, filter, firstOrElse, firstOrError, flatMapCompletable, flatMapCompletable, flatMapCompletableDelayError, flatMapCompletableDelayError, flatMapCompletableDelayError, flatMapConcatIterable, flatMapMerge, flatMapMerge, flatMapMergeDelayError, flatMapMergeDelayError, flatMapMergeDelayError, flatMapMergeSingle, flatMapMergeSingle, flatMapMergeSingleDelayError, 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, range, range, recoverWith, repeat, repeatWhen, retry, retryWhen, scanWith, scanWith, subscribeInternal, subscribeOn, subscribeOnOverride, subscribeShareContext, takeAtMost, takeUntil, takeWhile, toCompletionStage, toCompletionStage, toFuture, toFuture, toInputStream, toInputStream, toIterable, toIterable, whenCancel, whenFinally, whenFinally, whenOnComplete, whenOnError, whenOnNext, whenOnSubscribe, whenRequest, whenSubscriber, whenSubscription
-
-
-
-
Method Detail
-
subscribe
public final void subscribe(PublisherSource.Subscriber<? super T> subscriber)
Description copied from interface:PublisherSourceSubscribe for the result(s) of thisPublisherSource.- Specified by:
subscribein interfacePublisherSource<T>- Parameters:
subscriber- to subscribe for the result.
-
-