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(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(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.socketChannel
- 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 © 2018 Hazelcast, Inc.. All Rights Reserved.