@InterfaceAudience.Private public interface Peer extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the peer.
|
DomainSocket |
getDomainSocket() |
InputStream |
getInputStream() |
ReadableByteChannel |
getInputStreamChannel() |
String |
getLocalAddressString() |
OutputStream |
getOutputStream() |
int |
getReceiveBufferSize() |
String |
getRemoteAddressString() |
boolean |
getTcpNoDelay() |
boolean |
isClosed() |
boolean |
isLocal() |
void |
setReadTimeout(int timeoutMs)
Set the read timeout on this peer.
|
void |
setWriteTimeout(int timeoutMs)
Set the write timeout on this peer.
|
ReadableByteChannel getInputStreamChannel()
void setReadTimeout(int timeoutMs)
throws IOException
timeoutMs - The timeout in milliseconds.IOExceptionint getReceiveBufferSize()
throws IOException
IOExceptionboolean getTcpNoDelay()
throws IOException
IOExceptionvoid setWriteTimeout(int timeoutMs)
throws IOException
BasicSocketPeer#setWriteTimeout for details.timeoutMs - The timeout in milliseconds.IOExceptionboolean isClosed()
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionString getRemoteAddressString()
String getLocalAddressString()
InputStream getInputStream() throws IOException
IOExceptionOutputStream getOutputStream() throws IOException
IOExceptionboolean isLocal()
DomainSocket getDomainSocket()
Copyright © 2013 Apache Software Foundation. All rights reserved.