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,
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,
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, SelectableChannel channel) throws IOException
NIOTransport to configure newly created
SelectableChannel at the very early stage, right after the object
has been created.transport - channel - IOExceptionvoid postConfigure(NIOTransport transport, SelectableChannel channel) throws IOException
NIOTransport to configure newly created
SelectableChannel once it's been connected/accepted and become ready to use.transport - channel - IOExceptionCopyright © 2017–2019 Oracle Corporation. All rights reserved.