public class SimpleTcpClient extends AbstractLifeCycle
| 限定符和类型 | 类和说明 |
|---|---|
class |
SimpleTcpClient.AbstractHandler |
class |
SimpleTcpClient.ClientContext |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Func0<List<String>> |
alpnProtocols |
protected Action1<String> |
alpnSelected |
protected Action0 |
alpnUnsupported |
protected AsynchronousTcpClient |
client |
protected TcpConfiguration |
config |
protected Map<Integer,SimpleTcpClient.ClientContext> |
context |
start| 构造器和说明 |
|---|
SimpleTcpClient() |
SimpleTcpClient(TcpConfiguration config) |
| 限定符和类型 | 方法和说明 |
|---|---|
SimpleTcpClient |
alpnProtocols(Func0<List<String>> alpnProtocols) |
SimpleTcpClient |
alpnSelected(Action1<String> alpnSelected) |
SimpleTcpClient |
alpnUnsupported(Action0 alpnUnsupported) |
FuturePromise<TcpConnection> |
connect(String host,
int port) |
void |
connect(String host,
int port,
Action1<TcpConnection> conn) |
void |
connect(String host,
int port,
Action1<TcpConnection> conn,
Action1<Throwable> failed) |
void |
connect(String host,
int port,
Promise<TcpConnection> promise) |
protected void |
destroy() |
protected void |
init() |
isStarted, isStopped, start, stopprotected Action0 alpnUnsupported
protected AsynchronousTcpClient client
protected TcpConfiguration config
protected Map<Integer,SimpleTcpClient.ClientContext> context
public SimpleTcpClient()
public SimpleTcpClient(TcpConfiguration config)
public SimpleTcpClient alpnUnsupported(Action0 alpnUnsupported)
public SimpleTcpClient alpnSelected(Action1<String> alpnSelected)
public SimpleTcpClient alpnProtocols(Func0<List<String>> alpnProtocols)
public FuturePromise<TcpConnection> connect(String host, int port)
public void connect(String host, int port, Action1<TcpConnection> conn)
public void connect(String host, int port, Action1<TcpConnection> conn, Action1<Throwable> failed)
public void connect(String host, int port, Promise<TcpConnection> promise)
protected void init()
init 在类中 AbstractLifeCycleprotected void destroy()
destroy 在类中 AbstractLifeCycleCopyright © 2016. All rights reserved.