java.io.Closeable, java.lang.AutoCloseable@LimitedPrivate("HDFS")
@Unstable
public class SocketInputWrapper
extends java.io.FilterInputStream
SocketInputStream implementation. Otherwise, timeouts are managed by
setting the underlying socket timeout itself.| Modifier and Type | Method | Description |
|---|---|---|
java.nio.channels.ReadableByteChannel |
getReadableByteChannel() |
|
void |
setTimeout(long timeoutMs) |
Set the timeout for reads from this stream.
|
available, close, mark, markSupported, read, read, read, reset, skippublic void setTimeout(long timeoutMs)
throws java.net.SocketException
SocketInputWrapper instance per socket.timeoutMs - the new timeout, 0 for no timeoutjava.net.SocketException - if the timeout cannot be setpublic java.nio.channels.ReadableByteChannel getReadableByteChannel()
java.lang.IllegalStateException - if this socket does not have a channelCopyright © 2008–2025 Apache Software Foundation. All rights reserved.