Annotation Interface LifeCycleStop


@Target(METHOD) @Retention(RUNTIME) public @interface LifeCycleStop
Indicates that the method should be called when the application is stopped.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines the configuration key for the time (in milliseconds) to shut down properly.
    int
    Defines priority when stopping.
  • Element Details

    • priority

      int priority
      Defines priority when stopping.
      Returns:
      The priority
      Default:
      1000
    • gracefulStopTimeoutConfigKey

      String gracefulStopTimeoutConfigKey
      Defines the configuration key for the time (in milliseconds) to shut down properly.
      Returns:
      The configuration key
      Default:
      ""