Modifier and Type | Class and Description |
---|---|
class |
AsyncTimeout
This timeout uses a background thread to take action exactly when the timeout
occurs.
|
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 |
Timeout.clearDeadline()
Clears the deadline.
|
Timeout |
Timeout.clearTimeout()
Clears the timeout.
|
Timeout |
Timeout.deadline(long duration,
TimeUnit unit)
Set a deadline of now plus
duration time. |
Timeout |
Timeout.deadlineNanoTime(long deadlineNanoTime)
Sets the nano time when the deadline will be
reached.
|
Timeout |
ForwardingSink.timeout() |
Timeout |
DeflaterSink.timeout() |
Timeout |
GzipSink.timeout() |
Timeout |
Sink.timeout()
Returns the timeout for this sink.
|
Timeout |
ForwardingSource.timeout() |
Timeout |
Buffer.timeout() |
Timeout |
Source.timeout()
Returns the timeout for this source.
|
Timeout |
InflaterSource.timeout() |
Timeout |
GzipSource.timeout() |
Timeout |
Timeout.timeout(long timeout,
TimeUnit unit)
Wait at most
timeout time before aborting an operation. |
Copyright © 2015. All rights reserved.