public class SocketChannelCommunicationsSession extends AbstractCommunicationsSession
| Modifier and Type | Field and Description |
|---|---|
private SocketChannel |
channel |
private SocketChannelInput |
request |
private SocketChannelOutput |
response |
private int |
timeout |
MAGIC_BYTES| Constructor and Description |
|---|
SocketChannelCommunicationsSession(SocketChannel socketChannel,
String uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getBytesRead() |
long |
getBytesWritten() |
SocketChannelInput |
getInput() |
SocketChannelOutput |
getOutput() |
int |
getTimeout() |
void |
interrupt() |
boolean |
isClosed() |
boolean |
isDataAvailable() |
void |
setTimeout(int millis) |
private final SocketChannel channel
private final SocketChannelInput request
private final SocketChannelOutput response
private int timeout
public SocketChannelCommunicationsSession(SocketChannel socketChannel, String uri) throws IOException
IOExceptionpublic boolean isClosed()
public SocketChannelInput getInput()
public SocketChannelOutput getOutput()
public void setTimeout(int millis)
throws IOException
IOExceptionpublic int getTimeout()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic boolean isDataAvailable()
public long getBytesWritten()
public long getBytesRead()
public void interrupt()
Copyright © 2015 Apache NiFi (incubating). All rights reserved.