Interface Lifecycle.LifecycleHandler

Enclosing interface:
Lifecycle
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 static interface Lifecycle.LifecycleHandler
Functional interface for lifecycle activities that may run asynchronously
  • Method Summary

    Modifier and Type
    Method
    Description
    run()
    Execute the lifecycle activity.
  • Method Details

    • run

      Execute the lifecycle activity.

      Implementations preferably do not throw exceptions, but return a CompletableFuture with an exceptional result instead.

      Returns:
      a CompletableFuture that completes when the activity completes.