Class UDPNIOAsyncQueueReader
- java.lang.Object
-
- org.glassfish.grizzly.AbstractReader<SocketAddress>
-
- org.glassfish.grizzly.nio.AbstractNIOAsyncQueueReader
-
- org.glassfish.grizzly.nio.transport.UDPNIOAsyncQueueReader
-
- All Implemented Interfaces:
AsyncQueue,AsyncQueueReader<SocketAddress>,Reader<SocketAddress>
public final class UDPNIOAsyncQueueReader extends AbstractNIOAsyncQueueReader
The UDP transportAsyncQueueReaderimplementation, based on the Java NIO- Author:
- Alexey Stashok
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.grizzly.asyncqueue.AsyncQueue
AsyncQueue.AsyncResult
-
-
Field Summary
-
Fields inherited from class org.glassfish.grizzly.nio.AbstractNIOAsyncQueueReader
DEFAULT_BUFFER_SIZE, defaultBufferSize, transport
-
Fields inherited from interface org.glassfish.grizzly.asyncqueue.AsyncQueue
EXPECTING_MORE_OPTION
-
Fields inherited from interface org.glassfish.grizzly.Reader
COMPLETE_EVENT, INCOMPLETE_EVENT, READ_EVENT
-
-
Constructor Summary
Constructors Constructor Description UDPNIOAsyncQueueReader(NIOTransport transport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)protected voidonReadyToRead(Connection connection)protected intread0(Connection connection, Buffer buffer, ReadResult<Buffer,SocketAddress> currentResult)-
Methods inherited from class org.glassfish.grizzly.nio.AbstractNIOAsyncQueueReader
close, doRead, isReady, onClose, onReadFailure, processAsync, read
-
Methods inherited from class org.glassfish.grizzly.AbstractReader
read, read, read
-
-
-
-
Constructor Detail
-
UDPNIOAsyncQueueReader
public UDPNIOAsyncQueueReader(NIOTransport transport)
-
-
Method Detail
-
read0
protected int read0(Connection connection, Buffer buffer, ReadResult<Buffer,SocketAddress> currentResult) throws IOException
- Specified by:
read0in classAbstractNIOAsyncQueueReader- Throws:
IOException
-
addRecord
protected void addRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)
-
onReadyToRead
protected void onReadyToRead(Connection connection) throws IOException
- Specified by:
onReadyToReadin classAbstractNIOAsyncQueueReader- Throws:
IOException
-
-