public class SocketCommunicationsSession extends AbstractCommunicationsSession
| Modifier and Type | Field and Description |
|---|---|
private SocketInput |
request |
private SocketOutput |
response |
private Socket |
socket |
private int |
timeout |
MAGIC_BYTES| Constructor and Description |
|---|
SocketCommunicationsSession(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getBytesRead() |
long |
getBytesWritten() |
CommunicationsInput |
getInput() |
CommunicationsOutput |
getOutput() |
int |
getTimeout() |
void |
interrupt()
Asynchronously interrupts this FlowFileCodec.
|
boolean |
isClosed() |
boolean |
isDataAvailable() |
void |
setTimeout(int millis) |
createTransitUri, getUserDn, setUserDnprivate final Socket socket
private final SocketInput request
private final SocketOutput response
private int timeout
public SocketCommunicationsSession(Socket socket) throws IOException
IOExceptionpublic boolean isClosed()
true if the connection is closed, false
otherwisepublic CommunicationsInput getInput()
public CommunicationsOutput 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()
CommunicationsSessionCopyright © 2023 Apache NiFi Project. All rights reserved.