public class SocketChannelOutput extends Object implements CommunicationsOutput
| Modifier and Type | Field and Description |
|---|---|
private OutputStream |
bufferedOut |
private ByteCountingOutputStream |
countingOut |
private InterruptableOutputStream |
interruptableOut |
private SocketChannelOutputStream |
socketOutStream |
| Constructor and Description |
|---|
SocketChannelOutput(SocketChannel socketChannel) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesWritten() |
OutputStream |
getOutputStream() |
void |
interrupt() |
void |
setTimeout(int timeout) |
private final SocketChannelOutputStream socketOutStream
private final ByteCountingOutputStream countingOut
private final OutputStream bufferedOut
private final InterruptableOutputStream interruptableOut
public SocketChannelOutput(SocketChannel socketChannel) 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 © 2015 Apache NiFi (incubating). All rights reserved.