public final class ChannelServer extends Object implements DiscoverNetworkListener
| Constructor and Description |
|---|
ChannelServer(io.netty.channel.EventLoopGroup bossGroup,
io.netty.channel.EventLoopGroup workerGroup,
ChannelServerConfiguration channelServerConfiguration,
Dispatcher dispatcher,
List<PeerStatusListener> peerStatusListeners,
ScheduledExecutorService timer)
Sets parameters and starts network device discovery.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelServerConfiguration |
channelServerConfiguration() |
void |
discoverNetwork(DiscoverResults discoverResults) |
DiscoverNetworks |
discoverNetworks() |
void |
exception(Throwable throwable) |
FutureDone<Void> |
shutdown()
Shuts down the server.
|
FutureDone<Void> |
shutdownFuture() |
public ChannelServer(io.netty.channel.EventLoopGroup bossGroup,
io.netty.channel.EventLoopGroup workerGroup,
ChannelServerConfiguration channelServerConfiguration,
Dispatcher dispatcher,
List<PeerStatusListener> peerStatusListeners,
ScheduledExecutorService timer)
throws IOException
bossGroup - workerGroup - channelServerConfiguration - The server configuration, that contains e.g. the handlersdispatcher - The shared dispatcherpeerStatusListeners - The status listener for offline peerstimer - IOException - If device discovery failed.public DiscoverNetworks discoverNetworks()
public ChannelServerConfiguration channelServerConfiguration()
public void discoverNetwork(DiscoverResults discoverResults)
discoverNetwork in interface DiscoverNetworkListenerpublic void exception(Throwable throwable)
exception in interface DiscoverNetworkListenerpublic FutureDone<Void> shutdown()
public FutureDone<Void> shutdownFuture()
shutdown()Copyright © 2014. All rights reserved.