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