public interface Networking
NioNetworking
that relies on
selectors. But also different implementations can be added like spinning,
thread per connection, epoll, UDP based etc.NioNetworking
Modifier and Type | Method and Description |
---|---|
Channel |
register(EndpointQualifier endpointQualifier,
ChannelInitializerProvider channelInitializerProvider,
SocketChannel socketChannel,
boolean clientMode)
Registers the SocketChannel to the EventLoop group and returns the
created Channel.
|
void |
shutdown()
Shuts down Networking.
|
void |
start()
Starts Networking.
|
Channel register(EndpointQualifier endpointQualifier, ChannelInitializerProvider channelInitializerProvider, SocketChannel socketChannel, boolean clientMode) throws IOException
Channel.start()
needs to be called.
In the future we need to think about passing the socket channel because
it binds Networking to tcp and this is not desirable.endpointQualifier
- the endpoint qualifier for this server socketchannelInitializerProvider
- the class used for initializing the Channel after creationsocketChannel
- the socketChannel to registerclientMode
- if the channel is made in clientMode or server modeIOException
- when something failed while registering the
socketChannelvoid start()
void shutdown()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.