public class SocketClient extends Object
限定符 | 构造器和说明 |
---|---|
protected |
SocketClient() |
限定符和类型 | 方法和说明 |
---|---|
static SocketClient |
build() |
void |
cancel(boolean mayInterruptIfRunning) |
void |
cancelRequests(String tag) |
Future |
connect(String tag,
SocketHandler socketHandler) |
Future |
connect(String tag,
String host,
int port,
boolean isLong,
int timeout,
SocketHandler socketHandler) |
void |
setHost(String host) |
void |
setLong(boolean aLong) |
void |
setPort(int port) |
void |
shutdown() |
public static SocketClient build()
public void setLong(boolean aLong)
public void setHost(String host)
public void setPort(int port)
public Future connect(String tag, SocketHandler socketHandler)
public Future connect(String tag, String host, int port, boolean isLong, int timeout, SocketHandler socketHandler)
public void cancelRequests(String tag)
public void cancel(boolean mayInterruptIfRunning)
public void shutdown()