public class SocketOutput extends Object implements CommunicationsOutput
| Modifier and Type | Field and Description |
|---|---|
private OutputStream |
bufferedOut |
private ByteCountingOutputStream |
countingOut |
private InterruptableOutputStream |
interruptableOut |
private static org.slf4j.Logger |
LOG |
private Socket |
socket |
| Constructor and Description |
|---|
SocketOutput(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesWritten() |
OutputStream |
getOutputStream() |
void |
interrupt() |
void |
setTimeout(int timeout) |
private static final org.slf4j.Logger LOG
private final Socket socket
private final ByteCountingOutputStream countingOut
private final OutputStream bufferedOut
private final InterruptableOutputStream interruptableOut
public SocketOutput(Socket socket) throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface CommunicationsOutputIOExceptionpublic void setTimeout(int timeout)
public long getBytesWritten()
getBytesWritten in interface CommunicationsOutputpublic void interrupt()
Copyright © 2023 Apache NiFi Project. All rights reserved.