public interface ChannelConfigurator
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 TypeMethodDescriptionvoidpostConfigure(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 Details
-
preConfigure
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
This method is called by aNIOTransportto configure newly createdSelectableChannelonce it's been connected/accepted and become ready to use.- Parameters:
transport-channel-- Throws:
IOException
-