Class NettyFutureCompletable
java.lang.Object
io.servicetalk.concurrent.api.Completable
io.servicetalk.concurrent.api.internal.SubscribableCompletable
io.servicetalk.transport.netty.internal.NettyFutureCompletable
- All Implemented Interfaces:
CompletableSource
A
Completable that wraps a netty Future.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.servicetalk.concurrent.CompletableSource
CompletableSource.Processor, CompletableSource.Subscriber -
Constructor Summary
ConstructorsConstructorDescriptionNettyFutureCompletable(Supplier<io.netty.util.concurrent.Future<?>> futureSupplier) New instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleSubscribe(CompletableSource.Subscriber subscriber) Handles a subscriber to thisCompletable.Methods inherited from class io.servicetalk.concurrent.api.internal.SubscribableCompletable
subscribeMethods inherited from class io.servicetalk.concurrent.api.Completable
afterCancel, afterFinally, afterFinally, afterOnComplete, afterOnError, afterOnSubscribe, afterSubscriber, amb, amb, ambWith, anyOf, anyOf, beforeCancel, beforeFinally, beforeFinally, beforeOnComplete, beforeOnError, beforeOnSubscribe, beforeSubscriber, cache, cache, cache, cache, completed, concat, concat, concat, concat, defer, failed, fromCallable, fromFuture, fromRunnable, fromStage, liftAsync, liftSync, merge, merge, merge, merge, mergeAll, mergeAll, mergeAll, mergeAll, mergeAllDelayError, mergeAllDelayError, mergeAllDelayError, mergeAllDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, never, onErrorComplete, onErrorComplete, onErrorComplete, onErrorMap, onErrorMap, onErrorMap, onErrorResume, onErrorResume, onErrorResume, publishOn, publishOn, repeat, repeatWhen, retry, retryWhen, setContextOnSubscribe, shareContextOnSubscribe, subscribe, subscribe, subscribe, subscribeInternal, subscribeOn, subscribeOn, timeout, timeout, timeout, timeout, toCompletionStage, toFuture, toPublisher, toSingle, whenCancel, whenFinally, whenFinally, whenOnComplete, whenOnError, whenOnSubscribe, whenSubscriber
-
Constructor Details
-
NettyFutureCompletable
New instance.- Parameters:
futureSupplier- ASupplierthat is invoked every time thisCompletableis subscribed.
-
-
Method Details
-
handleSubscribe
Description copied from class:CompletableHandles a subscriber to thisCompletable.This method is invoked internally by
Completablefor every call to theCompletable.subscribeInternal(CompletableSource.Subscriber)method.- Specified by:
handleSubscribein classCompletable- Parameters:
subscriber- the subscriber.
-