|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.nio.NIOConnection
org.glassfish.grizzly.nio.transport.UDPNIOConnection
org.glassfish.grizzly.nio.transport.UDPNIOServerConnection
public class UDPNIOServerConnection
Server Connection implementation
for the UDPNIOTransport
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.grizzly.Connection |
|---|
Connection.CloseListener, Connection.CloseType |
| Field Summary |
|---|
| Fields inherited from class org.glassfish.grizzly.nio.NIOConnection |
|---|
asyncReadQueue, asyncWriteQueue, attributes, channel, closeFlag, isBlocking, isStandalone, maxAsyncWriteQueueSize, monitoringConfig, processor, processorSelector, readBufferSize, readTimeoutMillis, selectionKey, selectorRunner, transport, writeBufferSize, writeTimeoutMillis, zeroByteReadCount |
| Constructor Summary | |
|---|---|
UDPNIOServerConnection(UDPNIOTransport transport,
java.nio.channels.DatagramChannel channel)
|
|
| Method Summary | |
|---|---|
void |
close(CompletionHandler<Connection> completionHandler)
Close the Connection |
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()
|
void |
unbind(CompletionHandler<Connection> completionHandler)
|
| Methods inherited from class org.glassfish.grizzly.nio.transport.UDPNIOConnection |
|---|
getLocalAddress, getPeerAddress, isConnected, onConnect, onRead, onWrite, register, resetProperties, setReadBufferSize, setSelectionKey, setSelectorRunner, setWriteBufferSize, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UDPNIOServerConnection(UDPNIOTransport transport,
java.nio.channels.DatagramChannel channel)
| Method Detail |
|---|
public Processor getProcessor()
ConnectionProcessor, 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.
getProcessor in interface Connection<java.net.SocketAddress>getProcessor in class NIOConnectionProcessor, which will process
Connection I/O events.public ProcessorSelector getProcessorSelector()
ConnectionProcessorSelector, which will be used to get
Processor to process Connection I/O events, in case if
this Connection's Processor is null.
getProcessorSelector in interface Connection<java.net.SocketAddress>getProcessorSelector in class NIOConnectionProcessorSelector, which will be used to get
Processor to process Connection I/O events, in case if
this Connection's Processor is null.public void close(CompletionHandler<Connection> completionHandler)
ConnectionConnection
close in interface Closeable<Connection>close in interface Connection<java.net.SocketAddress>close in class NIOConnectioncompletionHandler - CompletionHandler to be called, when
the connection is closed.public void unbind(CompletionHandler<Connection> completionHandler)
protected void preClose()
preClose in class UDPNIOConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||