Class StartupContext

java.lang.Object
com.soklet.StartupContext

@ThreadSafe public final class StartupContext extends Object
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 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:
      true if cancelation is requested, false otherwise