Interface TimeoutTracker

All Known Implementing Classes:
ApiCallTimeoutTracker, NoOpTimeoutTracker

public interface TimeoutTracker
Tracker task to track the TimeoutTask and the ScheduledFuture that schedules the timeout task.
  • Method Details

    • hasExecuted

      boolean hasExecuted()
      Returns:
      True if timeout task has been executed. False otherwise
    • isEnabled

      boolean isEnabled()
      Returns:
      True if the timer task has been scheduled. False if the timeout is disabled for this request
    • cancel

      void cancel()
      cancel the ScheduledFuture
    • abortable

      void abortable(Abortable abortable)
      Sets the abortable task to be aborted by TimeoutTask
      Parameters:
      abortable - the abortable task