- enter
- exit
- timeout
- <init>
- sink
Returns a new sink that delegates to sink, using this to implement timeouts.
This works best if #tim
- source
Returns a new source that delegates to source, using this to implement timeouts.
This works best if
- cancelScheduledTimeout
Returns true if the timeout occurred.
- hasDeadline
- newTimeoutException
Returns an IOException to represent a timeout. By default this method returns
InterruptedIOException
- remainingNanos
Returns the amount of time left until the time out. This will be negative if the
timeout has elapsed
- scheduleTimeout
- timedOut
Invoked by the watchdog thread when the time between calls to #enter() and
#exit() has exceeded the