public class SSLSocketChannelHandler<E extends Event<SocketChannel>> extends SocketChannelHandler<E>
| Modifier and Type | Field and Description |
|---|---|
private ByteArrayOutputStream |
currBytes |
TCP_DELIMITERcharset, dispatcher, eventFactory, events, key, logger| Constructor and Description |
|---|
SSLSocketChannelHandler(SelectionKey key,
AsyncChannelDispatcher dispatcher,
Charset charset,
EventFactory<E> eventFactory,
BlockingQueue<E> events,
ComponentLog logger) |
| Modifier and Type | Method and Description |
|---|---|
byte |
getDelimiter() |
protected void |
processBuffer(SSLSocketChannel sslSocketChannel,
SocketChannel socketChannel,
int bytesRead,
byte[] buffer)
Process the contents of the buffer.
|
void |
run() |
private final ByteArrayOutputStream currBytes
public SSLSocketChannelHandler(SelectionKey key, AsyncChannelDispatcher dispatcher, Charset charset, EventFactory<E> eventFactory, BlockingQueue<E> events, ComponentLog logger)
public void run()
protected void processBuffer(SSLSocketChannel sslSocketChannel, SocketChannel socketChannel, int bytesRead, byte[] buffer) throws InterruptedException, IOException
sslSocketChannel - the channel the data was read fromsocketChannel - the socket channel being wrapped by sslSocketChannelbytesRead - the number of bytes readbuffer - the buffer to processInterruptedException - thrown if interrupted while queuing eventsIOExceptionpublic byte getDelimiter()
getDelimiter in class SocketChannelHandler<E extends Event<SocketChannel>>Copyright © 2019 Apache NiFi Project. All rights reserved.