public class AsyncTimeout extends Timeout
| Constructor and Description |
|---|
AsyncTimeout() |
| Modifier and Type | Method and Description |
|---|---|
void |
enter() |
boolean |
exit() |
protected IOException |
newTimeoutException(IOException cause) |
Sink |
sink(Sink sink) |
Source |
source(Source source) |
protected void |
timedOut() |
clearDeadline, clearTimeout, deadline, deadlineNanoTime, deadlineNanoTime, hasDeadline, throwIfReached, timeout, timeoutNanos, waitUntilNotifiedpublic final void enter()
public final boolean exit()
protected void timedOut()
protected IOException newTimeoutException(IOException cause)
cause - IOExceptionIOException to represent a timeout. By default this method returns InterruptedIOException. If cause is non-null it is set as the cause of the
returned exception.Copyright © 2019. All rights reserved.