Top Description Methods
org.glassfish.grizzly.nio

public Interface ChannelConfigurator

Known Direct Implementers
org.glassfish.grizzly.nio.transport.TCPNIOTransport.DefaultChannelConfigurator, org.glassfish.grizzly.nio.transport.UDPNIOTransport.DefaultChannelConfigurator
Imports
java.io.IOException, java.nio.channels.SelectableChannel

Configurator responsible for initial SelectableChannel configuration. Such a configurator(s) could be used by NIOTransport to customize configuration of newly created NIOConnections. Depending on NIOTransport nature, could be used both for client and server side connections.
Author
Alexey Stashok

Method Summary

Modifier and TypeMethod and Description
public void
postConfigure(NIOTransport transport, SelectableChannel channel)

This method is called by a NIOTransport to configure newly created SelectableChannel once it's been connected/accepted and become ready to use.

public void
preConfigure(NIOTransport transport, SelectableChannel channel)

This method is called by a NIOTransport to configure newly created SelectableChannel at the very early stage, right after the object has been created.

Method Detail

postConfigureback to summary
public void postConfigure(NIOTransport transport, SelectableChannel channel) throws IOException

This method is called by a NIOTransport to configure newly created SelectableChannel once it's been connected/accepted and become ready to use.

preConfigureback to summary
public void preConfigure(NIOTransport transport, SelectableChannel channel) throws IOException

This method is called by a NIOTransport to configure newly created SelectableChannel at the very early stage, right after the object has been created.