Interface CbFuture<T,F>

All Superinterfaces:
Serializable, SerializableLambda
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CbFuture<T,F> extends SerializableLambda
Represents a callback that accepts the result of a CompletableFuture operation. The callback is invoked on a Component implementation class. The type of the class on which the callback is invoked on is represented by the T generic parameter. The type of the result of the CompletableFuture is represented by the F generic parameter.
Author:
Felix Project Team
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T instance, F future)
    Handles the given arguments.
    default CbFuture<T,F>
    andThen(CbFuture<? super T,F> after)
     
  • Method Details

    • accept

      void accept(T instance, F future)
      Handles the given arguments.
      Parameters:
      instance - the Component implementation instance on which the callback is invoked on.
      future - the result of a CompletableFuture operation.
    • andThen

      default CbFuture<T,F> andThen(CbFuture<? super T,F> after)