public abstract class ReliableServer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.bootstrap.ServerBootstrap |
bootstrap |
protected io.netty.channel.ChannelFuture |
channelFuture |
protected io.netty.channel.ChannelInitializer<io.netty.channel.Channel> |
channelInitializer |
| Constructor and Description |
|---|
ReliableServer(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(java.net.SocketAddress bindAddress,
boolean sync)
Bind the server to the given socket address.
|
void |
bind(java.lang.String bindAddress,
int bindPort,
boolean sync)
Bind the server to the given host and port.
|
void |
close()
Close the bound channel future.
|
protected abstract void |
configureBootstrap()
Configure the bootstrap channel, event group and options.
|
io.netty.bootstrap.ServerBootstrap |
getBootstrap() |
io.netty.channel.ChannelFuture |
getChannelFuture() |
protected final io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer
protected final io.netty.bootstrap.ServerBootstrap bootstrap
protected io.netty.channel.ChannelFuture channelFuture
public ReliableServer(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer)
protected abstract void configureBootstrap()
public void bind(java.lang.String bindAddress,
int bindPort,
boolean sync)
bindAddress - The address to bind tobindPort - The port to bind tosync - If the method should wait for the bind to completepublic void bind(java.net.SocketAddress bindAddress,
boolean sync)
bindAddress - The address to bind tosync - If the method should wait for the bind to completepublic io.netty.bootstrap.ServerBootstrap getBootstrap()
public io.netty.channel.ChannelFuture getChannelFuture()
public void close()