R - The type of objects read from the server owning this state.W - The type of objects written to the server owning this state.public abstract class ServerState<R,W>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.bootstrap.ServerBootstrap |
bootstrap |
protected DetachedChannelPipeline |
detachedPipeline |
protected java.net.SocketAddress |
socketAddress |
| Modifier | Constructor and Description |
|---|---|
protected |
ServerState(ServerState<?,?> toCopy,
DetachedChannelPipeline newPipeline) |
protected |
ServerState(ServerState<R,W> toCopy,
io.netty.bootstrap.ServerBootstrap newBootstrap) |
protected |
ServerState(ServerState<R,W> toCopy,
java.net.SocketAddress socketAddress) |
protected |
ServerState(java.net.SocketAddress socketAddress,
io.netty.channel.EventLoopGroup parent,
io.netty.channel.EventLoopGroup child,
java.lang.Class<? extends io.netty.channel.ServerChannel> channelClass) |
| Modifier and Type | Method and Description |
|---|---|
<RR,WW> ServerState<RR,WW> |
addChannelHandlerAfter(io.netty.util.concurrent.EventExecutorGroup group,
java.lang.String baseName,
java.lang.String name,
rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory) |
<RR,WW> ServerState<RR,WW> |
addChannelHandlerAfter(java.lang.String baseName,
java.lang.String name,
rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory) |
<RR,WW> ServerState<RR,WW> |
addChannelHandlerBefore(io.netty.util.concurrent.EventExecutorGroup group,
java.lang.String baseName,
java.lang.String name,
rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory) |
<RR,WW> ServerState<RR,WW> |
addChannelHandlerBefore(java.lang.String baseName,
java.lang.String name,
rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory) |
<RR,WW> ServerState<RR,WW> |
addChannelHandlerFirst(io.netty.util.concurrent.EventExecutorGroup group,
java.lang.String name,
rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory) |
<RR,WW> ServerState<RR,WW> |
addChannelHandlerFirst(java.lang.String name,
rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory) |
<RR,WW> ServerState<RR,WW> |
addChannelHandlerLast(io.netty.util.concurrent.EventExecutorGroup group,
java.lang.String name,
rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory) |
<RR,WW> ServerState<RR,WW> |
addChannelHandlerLast(java.lang.String name,
rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory) |
<T> ServerState<R,W> |
channelOption(io.netty.channel.ChannelOption<T> option,
T value) |
<T> ServerState<R,W> |
clientChannelOption(io.netty.channel.ChannelOption<T> option,
T value) |
protected abstract <RR,WW> ServerState<RR,WW> |
copy() |
protected abstract ServerState<R,W> |
copy(java.net.SocketAddress newSocketAddress) |
protected abstract ServerState<R,W> |
copyBootstrapOnly() |
ServerState<R,W> |
enableWireLogging(io.netty.handler.logging.LogLevel wireLoggingLevel) |
ServerState<R,W> |
enableWireLogging(java.lang.String name,
io.netty.handler.logging.LogLevel wireLoggingLevel) |
java.net.SocketAddress |
getServerAddress() |
<RR,WW> ServerState<RR,WW> |
pipelineConfigurator(rx.functions.Action1<io.netty.channel.ChannelPipeline> pipelineConfigurator) |
ServerState<R,W> |
serverAddress(java.net.SocketAddress socketAddress) |
protected final java.net.SocketAddress socketAddress
protected final io.netty.bootstrap.ServerBootstrap bootstrap
protected final DetachedChannelPipeline detachedPipeline
protected ServerState(java.net.SocketAddress socketAddress,
io.netty.channel.EventLoopGroup parent,
io.netty.channel.EventLoopGroup child,
java.lang.Class<? extends io.netty.channel.ServerChannel> channelClass)
protected ServerState(ServerState<R,W> toCopy, io.netty.bootstrap.ServerBootstrap newBootstrap)
protected ServerState(ServerState<?,?> toCopy, DetachedChannelPipeline newPipeline)
protected ServerState(ServerState<R,W> toCopy, java.net.SocketAddress socketAddress)
public <T> ServerState<R,W> channelOption(io.netty.channel.ChannelOption<T> option, T value)
public <T> ServerState<R,W> clientChannelOption(io.netty.channel.ChannelOption<T> option, T value)
public <RR,WW> ServerState<RR,WW> addChannelHandlerFirst(java.lang.String name, rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory)
public <RR,WW> ServerState<RR,WW> addChannelHandlerFirst(io.netty.util.concurrent.EventExecutorGroup group, java.lang.String name, rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory)
public <RR,WW> ServerState<RR,WW> addChannelHandlerLast(java.lang.String name, rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory)
public <RR,WW> ServerState<RR,WW> addChannelHandlerLast(io.netty.util.concurrent.EventExecutorGroup group, java.lang.String name, rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory)
public <RR,WW> ServerState<RR,WW> addChannelHandlerBefore(java.lang.String baseName, java.lang.String name, rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory)
public <RR,WW> ServerState<RR,WW> addChannelHandlerBefore(io.netty.util.concurrent.EventExecutorGroup group, java.lang.String baseName, java.lang.String name, rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory)
public <RR,WW> ServerState<RR,WW> addChannelHandlerAfter(java.lang.String baseName, java.lang.String name, rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory)
public <RR,WW> ServerState<RR,WW> addChannelHandlerAfter(io.netty.util.concurrent.EventExecutorGroup group, java.lang.String baseName, java.lang.String name, rx.functions.Func0<io.netty.channel.ChannelHandler> handlerFactory)
public <RR,WW> ServerState<RR,WW> pipelineConfigurator(rx.functions.Action1<io.netty.channel.ChannelPipeline> pipelineConfigurator)
public ServerState<R,W> enableWireLogging(io.netty.handler.logging.LogLevel wireLoggingLevel)
public ServerState<R,W> enableWireLogging(java.lang.String name, io.netty.handler.logging.LogLevel wireLoggingLevel)
public ServerState<R,W> serverAddress(java.net.SocketAddress socketAddress)
public java.net.SocketAddress getServerAddress()
protected abstract ServerState<R,W> copyBootstrapOnly()
protected abstract <RR,WW> ServerState<RR,WW> copy()
protected abstract ServerState<R,W> copy(java.net.SocketAddress newSocketAddress)