Class DeadlineTimeoutException

All Implemented Interfaces:
Serializable

public class DeadlineTimeoutException extends TimeoutException
A specialization of TimeoutException that carries a deadline and an actual value, both as UNIX times.
Since:
5.0
See Also:
  • Field Details

  • Constructor Details

    • DeadlineTimeoutException

      private DeadlineTimeoutException(Deadline deadline)
      Creates a new exception for the given timeout deadline and actual timeout.
      Parameters:
      deadline - When was the deadline in UNIX time.
  • Method Details

    • from

      public static DeadlineTimeoutException from(Deadline deadline)
      Creates a new exception for the given timeout deadline and actual timeout.
      Parameters:
      deadline - When was the deadline in UNIX time.
      Returns:
      a new TimeoutValueException.
    • getDeadline

      public Deadline getDeadline()
      The expected deadline for this timeout since the start of UNIX time.
      Returns:
      The expected deadline for this timeout since the start of UNIX time.