class Http2Stream.StreamTimeout
extends okio.AsyncTimeout
timedOut()
if the timeout is reached. In that case
we close the stream (asynchronously) which will notify the waiting thread.Constructor and Description |
---|
StreamTimeout() |
Modifier and Type | Method and Description |
---|---|
void |
exitAndThrowIfTimedOut() |
protected java.io.IOException |
newTimeoutException(java.io.IOException cause) |
protected void |
timedOut() |
protected void timedOut()
timedOut
in class okio.AsyncTimeout
protected java.io.IOException newTimeoutException(java.io.IOException cause)
newTimeoutException
in class okio.AsyncTimeout
public void exitAndThrowIfTimedOut() throws java.io.IOException
java.io.IOException