Interface ServiceRestartPolicy

  • All Known Implementing Classes:
    CooldownRestartPolicy
    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 ServiceRestartPolicy
    See Also:
    Original version
    • Field Detail

      • IMMEDIATE

        static final ServiceRestartPolicy IMMEDIATE
        A restart policy that has a service restart immediately.
    • Method Detail

      • notifyRestart

        default void notifyRestart()
        Policy might want to keep track of when the latest restarts have happened.
      • restartDelay

        long restartDelay()
        When the service should restart, in nanoseconds from the point when the service failed. A value less than or equal to zero means an immediate restart.