public interface ChannelConfigurator
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.| Modifier and Type | Method and Description |
|---|---|
void |
postConfigure(NIOTransport transport,
java.nio.channels.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. |
void |
preConfigure(NIOTransport transport,
java.nio.channels.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. |
void preConfigure(NIOTransport transport, java.nio.channels.SelectableChannel channel) throws java.io.IOException
NIOTransport to configure newly created
SelectableChannel at the very early stage, right after the object
has been created.transport - channel - java.io.IOExceptionvoid postConfigure(NIOTransport transport, java.nio.channels.SelectableChannel channel) throws java.io.IOException
NIOTransport to configure newly created
SelectableChannel once it's been connected/accepted and become ready to use.transport - channel - java.io.IOExceptionCopyright © 2018 Oracle Corporation. All Rights Reserved.