org.glassfish.grizzly.nio.transport
Class UDPNIOServerConnection

java.lang.Object
  extended by org.glassfish.grizzly.nio.AbstractNIOConnection
      extended by org.glassfish.grizzly.nio.transport.UDPNIOConnection
          extended by org.glassfish.grizzly.nio.transport.UDPNIOServerConnection
All Implemented Interfaces:
Closeable, AttributeStorage, Connection<SocketAddress>, NIOConnection, Readable<SocketAddress>, Writable<SocketAddress>

public class UDPNIOServerConnection
extends UDPNIOConnection

Server Connection implementation for the UDPNIOTransport

Author:
Alexey Stashok

Field Summary
 
Fields inherited from class org.glassfish.grizzly.nio.AbstractNIOConnection
asyncReadQueue, asyncWriteQueue, attributes, channel, isBlocking, isClosed, processor, processorSelector, readBufferSize, selectionKey, selectorRunner, transport, writeBufferSize
 
Constructor Summary
UDPNIOServerConnection(UDPNIOTransport transport, DatagramChannel channel)
           
 
Method Summary
 Processor getProcessor()
          Gets the default Processor, which will process Connection I/O events.
 ProcessorSelector getProcessorSelector()
          Gets the default ProcessorSelector, which will be used to get Processor to process Connection I/O events, in case if this Connection's Processor is null.
protected  void preClose()
           
 
Methods inherited from class org.glassfish.grizzly.nio.transport.UDPNIOConnection
getLocalAddress, getPeerAddress, getStreamReader, getStreamWriter, isConnected, read, register, setReadBufferSize, setSelectionKey, setSelectorRunner, setWriteBufferSize, write
 
Methods inherited from class org.glassfish.grizzly.nio.AbstractNIOConnection
close, configureBlocking, disableIOEvent, enableIOEvent, getAsyncReadQueue, getAsyncWriteQueue, getAttributes, getChannel, getReadBufferSize, getSelectionKey, getSelectorRunner, getTransport, getWriteBufferSize, isBlocking, isOpen, obtainAttributes, read, read, read, setChannel, setProcessor, setProcessorSelector, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDPNIOServerConnection

public UDPNIOServerConnection(UDPNIOTransport transport,
                              DatagramChannel channel)
Method Detail

getProcessor

public Processor getProcessor()
Description copied from interface: Connection
Gets the default Processor, which will process Connection I/O events. If Processor is null, - then Transport will try to get Processor using Connection's ProcessorSelector.select(IOEvent, Connection). If ProcessorSelector, associated withthe Connection is also null - Transport will try to get Processor using own settings.

Specified by:
getProcessor in interface Connection<SocketAddress>
Overrides:
getProcessor in class AbstractNIOConnection
Returns:
the default Processor, which will process Connection I/O events.

getProcessorSelector

public ProcessorSelector getProcessorSelector()
Description copied from interface: Connection
Gets the default ProcessorSelector, which will be used to get Processor to process Connection I/O events, in case if this Connection's Processor is null.

Specified by:
getProcessorSelector in interface Connection<SocketAddress>
Overrides:
getProcessorSelector in class AbstractNIOConnection
Returns:
the default ProcessorSelector, which will be used to get Processor to process Connection I/O events, in case if this Connection's Processor is null.

preClose

protected void preClose()
Overrides:
preClose in class UDPNIOConnection


Copyright © 2009 SUN Microsystems. All Rights Reserved.