protected class RpcClient.Connection.PingInputStream extends FilterInputStream
in| Modifier | Constructor and Description |
|---|---|
protected |
RpcClient.Connection.PingInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
read()
Read a byte from the stream.
|
int |
read(byte[] buf,
int off,
int len)
Read bytes into a buffer starting from offset
off
Send a ping if timeout on read. |
available, close, mark, markSupported, read, reset, skipprotected RpcClient.Connection.PingInputStream(InputStream in)
public int read()
throws IOException
read in class FilterInputStreamIOException - for any IO problem other than socket timeoutpublic int read(byte[] buf,
int off,
int len)
throws IOException
off
Send a ping if timeout on read. Retries if no failure is detected
until a byte is read.read in class FilterInputStreamIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.