T - the channel initializerpublic static class InvokerService.NettyServerRef<T extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>> extends Object
| Constructor and Description |
|---|
NettyServerRef(io.netty.bootstrap.ServerBootstrap serverBootstrap,
T channelInitializer,
io.netty.channel.EventLoopGroup parentGroup,
io.netty.channel.EventLoopGroup childGroup,
Class<? extends io.netty.channel.ServerChannel> serverChannel) |
| Modifier and Type | Method and Description |
|---|---|
T |
getChannelInitializer() |
io.netty.channel.EventLoopGroup |
getChildGroup() |
io.netty.channel.EventLoopGroup |
getParentGroup() |
io.netty.bootstrap.ServerBootstrap |
getServerBootstrap() |
void |
init(int port)
The port to bind to.
|
void |
initServerBootstrap()
Init only server bootstrap
|
void |
initWithPort(int port)
The port to bind to.
|
void |
shutdown()
Shutdown this server ref.
|
public NettyServerRef(io.netty.bootstrap.ServerBootstrap serverBootstrap,
T channelInitializer,
io.netty.channel.EventLoopGroup parentGroup,
io.netty.channel.EventLoopGroup childGroup,
Class<? extends io.netty.channel.ServerChannel> serverChannel)
serverBootstrap - the server bootstrapchannelInitializer - the channel initializerparentGroup - the parent groupchildGroup - the child groupserverChannel - the server channelpublic io.netty.bootstrap.ServerBootstrap getServerBootstrap()
public T getChannelInitializer()
public io.netty.channel.EventLoopGroup getParentGroup()
public io.netty.channel.EventLoopGroup getChildGroup()
public void init(int port)
port - the port to usepublic void initServerBootstrap()
public void initWithPort(int port)
port - the portpublic void shutdown()
Copyright © 2016. All rights reserved.