org.glassfish.grizzly.nio.transport
Class UDPNIOAsyncQueueWriter

java.lang.Object
  extended by org.glassfish.grizzly.AbstractWriter<SocketAddress>
      extended by org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter
          extended by org.glassfish.grizzly.nio.transport.UDPNIOAsyncQueueWriter
All Implemented Interfaces:
AsyncQueue, AsyncQueueWriter<SocketAddress>, Writer<SocketAddress>

public final class UDPNIOAsyncQueueWriter
extends AbstractNIOAsyncQueueWriter

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.AsyncQueueWriter
AsyncQueueWriter.Reentrant
 
Nested classes/interfaces inherited from interface org.glassfish.grizzly.asyncqueue.AsyncQueue
AsyncQueue.AsyncResult
 
Field Summary
 
Fields inherited from class org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter
EMPTY_RECORD_SPACE_VALUE, maxPendingBytes, maxWriteReentrants, transport
 
Fields inherited from interface org.glassfish.grizzly.asyncqueue.AsyncQueueWriter
AUTO_SIZE, UNLIMITED_SIZE
 
Fields inherited from interface org.glassfish.grizzly.asyncqueue.AsyncQueue
EXPECTING_MORE_OPTION
 
Constructor Summary
UDPNIOAsyncQueueWriter(NIOTransport transport)
           
 
Method Summary
protected  void onReadyToWrite(NIOConnection connection)
           
protected  long write0(NIOConnection connection, AsyncWriteQueueRecord queueRecord)
           
 
Methods inherited from class org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter
aggregate, canWrite, close, createRecord, getMaxPendingBytesPerConnection, getMaxWriteReentrants, getWriteReentrant, isAllowDirectWrite, isMaxReentrantsReached, isReady, notifyWritePossible, offerToTaskQueue, onClose, onWriteFailure, processAsync, setAllowDirectWrite, setMaxPendingBytesPerConnection, setMaxWriteReentrants, write, write, writeQueueRecord
 
Methods inherited from class org.glassfish.grizzly.AbstractWriter
write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.grizzly.Writer
write, write, write, write
 

Constructor Detail

UDPNIOAsyncQueueWriter

public UDPNIOAsyncQueueWriter(NIOTransport transport)
Method Detail

write0

protected long write0(NIOConnection connection,
                      AsyncWriteQueueRecord queueRecord)
               throws IOException
Specified by:
write0 in class AbstractNIOAsyncQueueWriter
Throws:
IOException

onReadyToWrite

protected final void onReadyToWrite(NIOConnection connection)
                             throws IOException
Specified by:
onReadyToWrite in class AbstractNIOAsyncQueueWriter
Throws:
IOException


Copyright © 2013 Oracle Corporation. All Rights Reserved.