public final class ChannelServer extends Object
| Constructor and Description |
|---|
ChannelServer(io.netty.channel.EventLoopGroup bossGroup,
io.netty.channel.EventLoopGroup workerGroup,
ChannelServerConficuration channelServerConfiguration,
Dispatcher dispatcher,
List<PeerStatusListener> peerStatusListeners)
Sets parameters and starts network device discovery.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelServerConficuration |
channelServerConfiguration() |
Ports |
ports() |
FutureDone<Void> |
shutdown()
Shuts down the server.
|
FutureDone<Void> |
shutdownFuture() |
boolean |
startup()
Starts to listen to UDP and TCP ports.
|
public ChannelServer(io.netty.channel.EventLoopGroup bossGroup,
io.netty.channel.EventLoopGroup workerGroup,
ChannelServerConficuration channelServerConfiguration,
Dispatcher dispatcher,
List<PeerStatusListener> peerStatusListeners)
throws IOException
channelServerConfiguration - The server configuration, that contains e.g. the handlersdispatcher - The shared dispatcherpeerStatusListeners - The status listener for offline peersIOException - If device discovery failed.public Ports ports()
public ChannelServerConficuration channelServerConfiguration()
public boolean startup()
throws IOException
IOException - If the startup fails, e.g, ports already in usepublic FutureDone<Void> shutdown()
public FutureDone<Void> shutdownFuture()
shutdown()Copyright © 2014. All rights reserved.