| Modifier and Type | Class and Description |
|---|---|
static class |
_AsyncClientSocket.CLSActor |
| Constructor and Description |
|---|
_AsyncClientSocket() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IPromise |
connect(String host,
int port,
BiFunction<SelectionKey,SocketChannel,AsyncSocketConnection> connectionFactory) |
AsyncSocketConnection |
getConnection() |
boolean |
isClosed() |
static void |
main(String[] a) |
void |
run() |
public IPromise connect(String host, int port, BiFunction<SelectionKey,SocketChannel,AsyncSocketConnection> connectionFactory)
public boolean isClosed()
public void close()
throws IOException
IOExceptionpublic AsyncSocketConnection getConnection()
public static void main(String[] a) throws InterruptedException
InterruptedExceptionCopyright © 2020. All rights reserved.