Modifier and Type | Class | 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 | Description |
---|---|---|
static Timeout |
Timeout.NONE |
An empty timeout that neither tracks nor detects timeouts.
|
Modifier and Type | Method | Description |
---|---|---|
Timeout |
ForwardingTimeout.clearDeadline() |
|
Timeout |
Timeout.clearDeadline() |
Clears the deadline.
|
Timeout |
ForwardingTimeout.clearTimeout() |
|
Timeout |
Timeout.clearTimeout() |
Clears the timeout.
|
Timeout |
Timeout.deadline(long duration,
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 |
Buffer.timeout() |
|
Timeout |
DeflaterSink.timeout() |
|
Timeout |
ForwardingSink.timeout() |
|
Timeout |
ForwardingSource.timeout() |
|
Timeout |
ForwardingTimeout.timeout(long timeout,
TimeUnit unit) |
|
Timeout |
GzipSink.timeout() |
|
Timeout |
GzipSource.timeout() |
|
Timeout |
InflaterSource.timeout() |
|
Timeout |
Sink.timeout() |
Returns the timeout for this sink.
|
Timeout |
Source.timeout() |
Returns the timeout for this source.
|
Timeout |
Timeout.timeout(long timeout,
TimeUnit unit) |
Wait at most
timeout time before aborting an operation. |
Modifier and Type | Method | Description |
---|---|---|
ForwardingTimeout |
ForwardingTimeout.setDelegate(Timeout delegate) |
Constructor | Description |
---|---|
ForwardingTimeout(Timeout delegate) |
Copyright © 2018. All rights reserved.