org.glassfish.grizzly.nio.transport
Class TCPNIOAsyncQueueReader
java.lang.Object
org.glassfish.grizzly.AbstractReader<java.net.SocketAddress>
org.glassfish.grizzly.nio.AbstractNIOAsyncQueueReader
org.glassfish.grizzly.nio.transport.TCPNIOAsyncQueueReader
- All Implemented Interfaces:
- AsyncQueue, AsyncQueueReader<java.net.SocketAddress>, Reader<java.net.SocketAddress>
public final class TCPNIOAsyncQueueReader
- extends AbstractNIOAsyncQueueReader
The TCP transport AsyncQueueReader implementation, based on
the Java NIO
- Author:
- Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TCPNIOAsyncQueueReader
public TCPNIOAsyncQueueReader(NIOTransport transport)
read0
protected int read0(Connection connection,
Buffer buffer,
ReadResult<Buffer,java.net.SocketAddress> currentResult)
throws java.io.IOException
- Specified by:
read0 in class AbstractNIOAsyncQueueReader
- Throws:
java.io.IOException
addRecord
protected void addRecord(Connection connection,
Buffer buffer,
CompletionHandler completionHandler,
Interceptor<ReadResult> interceptor)
onReadyToRead
protected final void onReadyToRead(Connection connection)
throws java.io.IOException
- Specified by:
onReadyToRead in class AbstractNIOAsyncQueueReader
- Throws:
java.io.IOException
Copyright © 2012 Oracle Corporation. All Rights Reserved.