Package | Description |
---|---|
okio |
Okio complements
java.io and java.nio to make it much easier to access, store,
and process your data. |
okio.samples |
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. |
(package private) class |
PushableTimeout
A timeout that can apply its own state to another timeout for the duration
of a call.
|
Modifier and Type | Field and Description |
---|---|
private Timeout |
ForwardingTimeout.delegate |
static Timeout |
Timeout.NONE
An empty timeout that neither tracks nor detects timeouts.
|
private Timeout |
PushableTimeout.pushed |
(package private) Timeout |
Pipe.PipeSource.timeout |
Modifier and Type | Method and Description |
---|---|
Timeout |
Timeout.clearDeadline()
Clears the deadline.
|
Timeout |
ForwardingTimeout.clearDeadline() |
Timeout |
Timeout.clearTimeout()
Clears the timeout.
|
Timeout |
ForwardingTimeout.clearTimeout() |
Timeout |
Timeout.deadline(long duration,
java.util.concurrent.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 |
ForwardingTimeout.deadlineNanoTime(long deadlineNanoTime) |
Timeout |
ForwardingTimeout.delegate()
Timeout instance to which this instance is currently delegating. |
Timeout |
RealBufferedSource.timeout() |
Timeout |
Pipe.PipeSink.timeout() |
Timeout |
Pipe.PipeSource.timeout() |
Timeout |
DeflaterSink.timeout() |
Timeout |
GzipSource.timeout() |
Timeout |
RealBufferedSink.timeout() |
Timeout |
PeekSource.timeout() |
Timeout |
GzipSink.timeout() |
Timeout |
Buffer.timeout() |
Timeout |
ForwardingSource.timeout() |
Timeout |
Sink.timeout()
Returns the timeout for this sink.
|
Timeout |
ForwardingSink.timeout() |
Timeout |
InflaterSource.timeout() |
Timeout |
Source.timeout()
Returns the timeout for this source.
|
Timeout |
Timeout.timeout(long timeout,
java.util.concurrent.TimeUnit unit)
Wait at most
timeout time before aborting an operation. |
Timeout |
ForwardingTimeout.timeout(long timeout,
java.util.concurrent.TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
PushableTimeout.push(Timeout pushed) |
ForwardingTimeout |
ForwardingTimeout.setDelegate(Timeout delegate) |
private static Sink |
Okio.sink(java.io.OutputStream out,
Timeout timeout) |
private static Source |
Okio.source(java.io.InputStream in,
Timeout timeout) |
Constructor and Description |
---|
ForwardingTimeout(Timeout delegate) |
Modifier and Type | Method and Description |
---|---|
Timeout |
Randoms.RandomSource.timeout() |