public class AsynchronousTcpServer extends AbstractLifeCycle implements Server
start| 构造器和说明 |
|---|
AsynchronousTcpServer() |
AsynchronousTcpServer(Config config) |
AsynchronousTcpServer(Decoder decoder,
Encoder encoder,
Handler handler) |
AsynchronousTcpServer(Decoder decoder,
Encoder encoder,
Handler handler,
int timeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
destroy() |
protected void |
init() |
void |
listen(String host,
int port) |
void |
setConfig(Config config) |
isStarted, isStopped, start, stoppublic AsynchronousTcpServer()
public AsynchronousTcpServer(Config config)
public AsynchronousTcpServer(Decoder decoder, Encoder encoder, Handler handler)
protected void init()
init 在类中 AbstractLifeCycleprotected void destroy()
destroy 在类中 AbstractLifeCycleCopyright © 2016. All rights reserved.