Class CompletableFromCompletionStage<T>

  • Type Parameters:
    T - the element type of the CompletionsStage
    All Implemented Interfaces:
    CompletableSource

    public final class CompletableFromCompletionStage<T>
    extends Completable
    Wrap a CompletionStage and signal its outcome.
    Since:
    3.0.0
    • Field Detail

      • stage

        final java.util.concurrent.CompletionStage<T> stage
    • Constructor Detail

      • CompletableFromCompletionStage

        public CompletableFromCompletionStage​(java.util.concurrent.CompletionStage<T> stage)
    • Method Detail

      • subscribeActual

        protected void subscribeActual​(CompletableObserver observer)
        Description copied from class: Completable
        Implement this method to handle the incoming CompletableObservers and perform the business logic in your operator.

        There is no need to call any of the plugin hooks on the current Completable instance or the CompletableObserver; all hooks and basic safeguards have been applied by Completable.subscribe(CompletableObserver) before this method gets called.

        Specified by:
        subscribeActual in class Completable
        Parameters:
        observer - the CompletableObserver instance, never null