public interface Networking
NioNetworking
that
relies on selectors. But also different implementations can be added like
spinning, thread per connection, epoll 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 this Networking.
|
void |
start()
Starts this Networking.
|
Channel register(SocketChannel socketChannel, boolean clientMode) throws IOException
Channel.start()
needs to be called.socketChannel
- the socketChannel to registerclientMode
- if the channel is made in clientMode or server modeIOException
void start()
void shutdown()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.