Interface LifecycleHandler

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 LifecycleHandler
Functional interface towards a lifecycle handler used during start up or shutdown of an application.
Since:
4.3.0
Author:
Steven van Beelen
  • Method Summary

    Modifier and Type
    Method
    Description
    run(Configuration configuration)
    Run the start-up or shutdown process this LifecycleHandler represents.
  • Method Details

    • run

      CompletableFuture<?> run(@Nonnull Configuration configuration)
      Run the start-up or shutdown process this LifecycleHandler represents. Depending on the implementation this might be asynchronous through the return value.
      Parameters:
      configuration - The configuration that provides access to the components in this application.
      Returns:
      a CompletableFuture of unknown type which enables chaining several LifecycleHandler calls.