public class ServerBootstrap extends Object
| 构造器和说明 |
|---|
ServerBootstrap() |
| 限定符和类型 | 方法和说明 |
|---|---|
ServerBootstrap |
address(InetSocketAddress address) |
ServerBootstrap |
bossThreads(Integer threads) |
ServerBootstrap |
codec(String codec) |
RemotingChannelHolder |
getChannel() |
String |
getServerAddress() |
ServerBootstrap |
host(String host) |
boolean |
isStart() |
ServerBootstrap |
port(Integer port) |
ServerBootstrap |
register(Class<?> interfaceClazz,
Object ref) |
ServerBootstrap |
registry(URL registryConfig) |
ServerBootstrap |
server(String server) |
void |
shutdown() |
void |
start() |
ServerBootstrap |
timeout(Integer timeout) |
ServerBootstrap |
workThreads(Integer threads) |
public ServerBootstrap server(String server)
public ServerBootstrap host(String host)
public ServerBootstrap port(Integer port)
public ServerBootstrap address(InetSocketAddress address)
public ServerBootstrap codec(String codec)
public ServerBootstrap registry(URL registryConfig)
public ServerBootstrap workThreads(Integer threads)
public ServerBootstrap bossThreads(Integer threads)
public ServerBootstrap timeout(Integer timeout)
public void start()
public RemotingChannelHolder getChannel()
public ServerBootstrap register(Class<?> interfaceClazz, Object ref)
public boolean isStart()
public String getServerAddress()
public void shutdown()
Copyright © 2020. All rights reserved.