Class StartupContext
java.lang.Object
com.soklet.StartupContext
Framework-created advisory timing and cancelation information borrowed by a
transport during attachment and startup. Soklet owns the context and its
deadlines. A transport may read it from the attaching or startup thread but
must not attempt to mutate or extend either boundary.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionAcquires the time remaining before the active startup boundary.Is startup cancelation currently requested?
-
Method Details
-
getRemainingTime
Acquires the time remaining before the active startup boundary.- Returns:
- the remaining time, clamped to zero once the boundary is reached
-
isCancelationRequested
Is startup cancelation currently requested?- Returns:
trueif cancelation is requested,falseotherwise
-