Package edu.wpi.grip.core.util.service
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 Summary
Fields Modifier and Type Field Description static ServiceRestartPolicy
IMMEDIATE
A restart policy that has a service restart immediately.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
notifyRestart()
Policy might want to keep track of when the latest restarts have happened.long
restartDelay()
When the service should restart, in nanoseconds from the point when the service failed.
-
-
-
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.
-
-