Class Promise.Completable<S>

  • Type Parameters:
    S - the type of the result
    All Implemented Interfaces:
    CompletionStage<S>, Future<S>, Promise<S>
    Enclosing interface:
    Promise<C>

    @Deprecated(since="2021-05-27")
    public static class Promise.Completable<S>
    extends CompletableFuture<S>
    implements Promise<S>
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.

    A CompletableFuture that is also a Promise.

    • Constructor Detail

      • Completable

        public Completable()
        Deprecated.
    • Method Detail

      • succeeded

        public void succeeded​(S result)
        Deprecated.
        Description copied from interface: Promise

        Callback invoked when the operation completes.

        Specified by:
        succeeded in interface Promise<S>
        Parameters:
        result - the context
        See Also:
        Promise.failed(Throwable)
      • failed

        public void failed​(Throwable x)
        Deprecated.
        Description copied from interface: Promise

        Callback invoked when the operation fails.

        Specified by:
        failed in interface Promise<S>
        Parameters:
        x - the reason for the operation failure