Top Description Fields Constructors Methods
org.glassfish.grizzly.nio.transport

public Class UDPNIOServerConnection

extends UDPNIOConnection
Class Inheritance
Imports
java.io.IOException, java.nio.channels.DatagramChannel, .SelectionKey, java.util.concurrent.TimeUnit, java.util.logging.Level, .Logger, org.glassfish.grizzly.CloseReason, .Closeable, .CompletionHandler, .Grizzly, .Processor, .ProcessorSelector, org.glassfish.grizzly.impl.FutureImpl, org.glassfish.grizzly.nio.RegisterChannelResult, org.glassfish.grizzly.utils.Futures

Server org.glassfish.grizzly.Connection implementation for the UDPNIOTransport
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private static final Logger
Inherited from org.glassfish.grizzly.nio.transport.UDPNIOConnection:
localSocketAddressHolderpeerSocketAddressHolder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
public Processor<E extends Context>
public ProcessorSelector
getProcessorSelector()

Overrides org.glassfish.grizzly.nio.NIOConnection.getProcessorSelector.

Implements org.glassfish.grizzly.Connection.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
public void
protected void
public void
unbind(final CompletionHandler<Closeable> completionHandler)

Inherited from org.glassfish.grizzly.nio.transport.UDPNIOConnection:
blockcanWritecanWritedropdropdropAllenableInitialOpReadgetLocalAddressgetPeerAddressgetReadBufferSizegetWriteBufferSizeisConnectedjoinjoinnotifyCanWritenotifyCanWritenotifyReadyonConnectonReadonWriteresetPropertiessetMonitoringProbessetReadBufferSizesetSelectionKeysetSelectorRunnersetWriteBufferSizetoStringunblock

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Hides org.glassfish.grizzly.nio.transport.UDPNIOConnection.LOGGER.

Constructor Detail

UDPNIOServerConnectionback to summary
public UDPNIOServerConnection(UDPNIOTransport transport, DatagramChannel channel)

Method Detail

closeGracefully0back to summary
protected void closeGracefully0(final CompletionHandler<Closeable> completionHandler, final CloseReason closeReason)

Overrides org.glassfish.grizzly.nio.NIOConnection.closeGracefully0.

Annotations
@Override
getProcessorback to summary
public Processor<E extends Context> getProcessor()

Overrides org.glassfish.grizzly.nio.NIOConnection.getProcessor.

Implements org.glassfish.grizzly.Connection.getProcessor.

Doc from org.glassfish.grizzly.Connection.getProcessor.

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.

Annotations
@Override
getProcessorSelectorback to summary
public ProcessorSelector getProcessorSelector()

Overrides org.glassfish.grizzly.nio.NIOConnection.getProcessorSelector.

Implements org.glassfish.grizzly.Connection.getProcessorSelector.

Doc from org.glassfish.grizzly.Connection.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.

Annotations
@Override
preCloseback to summary
protected void preClose()

Overrides org.glassfish.grizzly.nio.NIOConnection.preClose.

Annotations
@Override
registerback to summary
public void register() throws IOException
terminate0back to summary
protected void terminate0(final CompletionHandler<Closeable> completionHandler, final CloseReason closeReason)

Overrides org.glassfish.grizzly.nio.NIOConnection.terminate0.

Annotations
@Override
unbindback to summary
public void unbind(final CompletionHandler<Closeable> completionHandler)