org.glassfish.grizzly.nio.transport
Class UDPNIOAsyncQueueWriter

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

public final class UDPNIOAsyncQueueWriter
extends AbstractNIOAsyncQueueWriter

The UDP transport AsyncQueueWriter implementation, based on the Java NIO

Author:
Alexey Stashok

Field Summary
 
Fields inherited from class org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter
maxPendingBytes, maxWriteReentrants, transport
 
Constructor Summary
UDPNIOAsyncQueueWriter(NIOTransport transport)
           
 
Method Summary
protected  void onReadyToWrite(Connection connection)
           
protected  int write0(NIOConnection connection, AsyncWriteQueueRecord queueRecord)
           
 
Methods inherited from class org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter
canWrite, close, createRecord, failWriteRecord, getMaxPendingBytesPerConnection, getMaxWriteReentrants, isReady, onClose, onWriteComplete, onWriteFailure, onWriteIncomplete, processAsync, setMaxPendingBytesPerConnection, setMaxWriteReentrants, write, write
 
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 int write0(NIOConnection connection,
                     AsyncWriteQueueRecord queueRecord)
              throws java.io.IOException
Specified by:
write0 in class AbstractNIOAsyncQueueWriter
Throws:
java.io.IOException

onReadyToWrite

protected final void onReadyToWrite(Connection connection)
                             throws java.io.IOException
Specified by:
onReadyToWrite in class AbstractNIOAsyncQueueWriter
Throws:
java.io.IOException


Copyright © 2011 Oracle Corpration. All Rights Reserved.