public interface Networking
NioNetworkingthat relies on selectors. But also different implementations can be added like spinning, thread per connection, epoll, UDP based etc.
|Modifier and Type||Method and Description|
Registers the SocketChannel to the EventLoop group and returns the created Channel.
Shuts down 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 socket
channelInitializerProvider- the class used for initializing the Channel after creation
socketChannel- the socketChannel to register
clientMode- if the channel is made in clientMode or server mode
IOException- when something failed while registering the socketChannel
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.