Module org.glassfish.grizzly
Class UDPNIOAsyncQueueWriter
java.lang.Object
org.glassfish.grizzly.AbstractWriter<SocketAddress>
org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter
org.glassfish.grizzly.nio.transport.UDPNIOAsyncQueueWriter
- All Implemented Interfaces:
AsyncQueue
,AsyncQueueWriter<SocketAddress>
,Writer<SocketAddress>
The UDP transport
AsyncQueueWriter
implementation, based on the Java NIO- Author:
- Alexey Stashok
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.grizzly.asyncqueue.AsyncQueue
AsyncQueue.AsyncResult
Nested classes/interfaces inherited from interface org.glassfish.grizzly.Writer
Writer.Reentrant
-
Field Summary
Fields inherited from class org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter
maxPendingBytes, maxWriteReentrants, transport
Fields inherited from interface org.glassfish.grizzly.asyncqueue.AsyncQueue
EXPECTING_MORE_OPTION
Fields inherited from interface org.glassfish.grizzly.asyncqueue.AsyncQueueWriter
AUTO_SIZE, UNLIMITED_SIZE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
onReadyToWrite
(NIOConnection connection) protected RecordWriteResult
write0
(NIOConnection connection, AsyncWriteQueueRecord queueRecord) Methods inherited from class org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter
aggregate, canWrite, canWrite, close, createRecord, getMaxPendingBytesPerConnection, isAllowDirectWrite, isReady, notifyWritePossible, notifyWritePossible, onClose, onWriteFailure, processAsync, setAllowDirectWrite, setMaxPendingBytesPerConnection, write, write, write
Methods inherited from class org.glassfish.grizzly.AbstractWriter
write, write, write, write
-
Constructor Details
-
UDPNIOAsyncQueueWriter
-
-
Method Details
-
write0
protected RecordWriteResult write0(NIOConnection connection, AsyncWriteQueueRecord queueRecord) throws IOException - Specified by:
write0
in classAbstractNIOAsyncQueueWriter
- Throws:
IOException
-
onReadyToWrite
- Specified by:
onReadyToWrite
in classAbstractNIOAsyncQueueWriter
- Throws:
IOException
-