Modifier and Type | Class and Description |
---|---|
class |
AsyncTimeout
This timeout uses a background thread to take action exactly when the timeout occurs.
|
class |
ForwardingTimeout
A
Timeout which forwards calls to another. |
Modifier and Type | Field and Description |
---|---|
static Timeout |
Timeout.NONE
An empty timeout that neither tracks nor detects timeouts.
|
Modifier and Type | Method and Description |
---|---|
Timeout |
ForwardingTimeout.clearDeadline() |
Timeout |
Timeout.clearDeadline()
Clears the deadline.
|
Timeout |
ForwardingTimeout.clearTimeout() |
Timeout |
Timeout.clearTimeout()
Clears the timeout.
|
Timeout |
Timeout.deadline(long duration,
java.util.concurrent.TimeUnit unit)
Set a deadline of now plus
duration time. |
Timeout |
ForwardingTimeout.deadlineNanoTime(long deadlineNanoTime) |
Timeout |
Timeout.deadlineNanoTime(long deadlineNanoTime)
Sets the nano time when the deadline will be
reached.
|
Timeout |
ForwardingTimeout.delegate()
Timeout instance to which this instance is currently delegating. |
Timeout |
ForwardingSink.timeout() |
Timeout |
ForwardingSource.timeout() |
Timeout |
DeflaterSink.timeout() |
Timeout |
GzipSource.timeout() |
Timeout |
InflaterSource.timeout() |
Timeout |
Sink.timeout()
Returns the timeout for this sink.
|
Timeout |
GzipSink.timeout() |
Timeout |
Source.timeout()
Returns the timeout for this source.
|
Timeout |
Buffer.timeout() |
Timeout |
ForwardingTimeout.timeout(long timeout,
java.util.concurrent.TimeUnit unit) |
Timeout |
Timeout.timeout(long timeout,
java.util.concurrent.TimeUnit unit)
Wait at most
timeout time before aborting an operation. |
Modifier and Type | Method and Description |
---|---|
ForwardingTimeout |
ForwardingTimeout.setDelegate(Timeout delegate) |
Constructor and Description |
---|
ForwardingTimeout(Timeout delegate) |
Copyright © 2018. All Rights Reserved.