Package org.glassfish.grizzly.nio
Interface ChannelConfigurator
-
public interface ChannelConfiguratorConfigurator responsible for initialSelectableChannelconfiguration. Such a configurator(s) could be used byNIOTransportto customize configuration of newly createdNIOConnections. Depending onNIOTransportnature, could be used both for client and server side connections.- Author:
- Alexey Stashok
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostConfigure(NIOTransport transport, SelectableChannel channel)This method is called by aNIOTransportto configure newly createdSelectableChannelonce it's been connected/accepted and become ready to use.voidpreConfigure(NIOTransport transport, SelectableChannel channel)This method is called by aNIOTransportto configure newly createdSelectableChannelat the very early stage, right after the object has been created.
-
-
-
Method Detail
-
preConfigure
void preConfigure(NIOTransport transport, SelectableChannel channel) throws IOException
This method is called by aNIOTransportto configure newly createdSelectableChannelat the very early stage, right after the object has been created.- Parameters:
transport-channel-- Throws:
IOException
-
postConfigure
void postConfigure(NIOTransport transport, SelectableChannel channel) throws IOException
This method is called by aNIOTransportto configure newly createdSelectableChannelonce it's been connected/accepted and become ready to use.- Parameters:
transport-channel-- Throws:
IOException
-
-