public final class TCPNIOAsyncQueueReader extends AbstractNIOAsyncQueueReader
AsyncQueueReader implementation, based on
the Java NIOAsyncQueue.AsyncResultDEFAULT_BUFFER_SIZE, defaultBufferSize, transportCOMPLETE_EVENT, INCOMPLETE_EVENT, READ_EVENTEXPECTING_MORE_OPTION| Constructor and Description |
|---|
TCPNIOAsyncQueueReader(NIOTransport transport) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRecord(Connection connection,
Buffer buffer,
CompletionHandler completionHandler,
Interceptor<ReadResult> interceptor) |
protected void |
onReadyToRead(Connection connection) |
protected int |
read0(Connection connection,
Buffer buffer,
ReadResult<Buffer,SocketAddress> currentResult) |
close, doRead, isReady, onClose, onReadFailure, processAsync, readread, read, readpublic TCPNIOAsyncQueueReader(NIOTransport transport)
protected int read0(Connection connection, Buffer buffer, ReadResult<Buffer,SocketAddress> currentResult) throws IOException
read0 in class AbstractNIOAsyncQueueReaderIOExceptionprotected void addRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)
protected final void onReadyToRead(Connection connection) throws IOException
onReadyToRead in class AbstractNIOAsyncQueueReaderIOExceptionCopyright © 2016 Oracle Corporation. All Rights Reserved.