public abstract class GlowNetworkServer extends Object
Modified implementation of NetworkServer
.
Modifier and Type | Field and Description |
---|---|
protected CountDownLatch |
latch |
Constructor and Description |
---|
GlowNetworkServer(GlowServer server,
ProtocolProvider protocolProvider,
CountDownLatch latch)
Creates an instance for the specified server.
|
Modifier and Type | Method and Description |
---|---|
abstract io.netty.channel.ChannelFuture |
bind(InetSocketAddress address) |
ProtocolProvider |
getProtocolProvider() |
GlowServer |
getServer() |
abstract void |
onBindFailure(InetSocketAddress address,
Throwable t) |
void |
onBindSuccess(InetSocketAddress address) |
abstract void |
shutdown() |
protected CountDownLatch latch
public GlowNetworkServer(GlowServer server, ProtocolProvider protocolProvider, CountDownLatch latch)
server
- the associated GlowServerlatch
- The countdown latch used during server startup to wait for network server
binding.public abstract io.netty.channel.ChannelFuture bind(InetSocketAddress address)
public void onBindSuccess(InetSocketAddress address)
public abstract void onBindFailure(InetSocketAddress address, Throwable t)
public abstract void shutdown()
public GlowServer getServer()
public ProtocolProvider getProtocolProvider()
Copyright © 2021. All rights reserved.