public interface ChannelConfigurator
SelectableChannel
configuration.
Such a configurator(s) could be used by NIOTransport
to customize
configuration of newly created NIOConnection
s.
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
- IOException
void 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
- IOException
Copyright © 2015 Oracle Corporation. All rights reserved.