Class ShutdownContext
java.lang.Object
com.soklet.ShutdownContext
Framework-created advisory phase and deadline information borrowed by a
transport for one shutdown invocation. Soklet owns the context and its
absolute phase boundary; a transport may inspect it but cannot extend the
deadline.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionAcquires the time remaining before the current phase boundary.Acquires the current shutdown phase.
-
Method Details
-
getShutdownPhase
Acquires the current shutdown phase.- Returns:
- the current shutdown phase
-
getRemainingTime
Acquires the time remaining before the current phase boundary.- Returns:
- the remaining time, clamped to zero
-