Package org.nustaq.kontraktor.asyncio
Class _AsyncClientSocket
java.lang.Object
org.nustaq.kontraktor.asyncio._AsyncClientSocket
- All Implemented Interfaces:
Runnable
Created by ruedi on 08/05/15.
ALPHA has serious issues.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()connect(String host, int port, BiFunction<SelectionKey, SocketChannel, AsyncSocketConnection> connectionFactory) booleanisClosed()static voidvoidrun()
-
Constructor Details
-
_AsyncClientSocket
public _AsyncClientSocket()
-
-
Method Details
-
connect
public IPromise connect(String host, int port, BiFunction<SelectionKey, SocketChannel, AsyncSocketConnection> connectionFactory) -
run
public void run() -
isClosed
public boolean isClosed() -
close
- Throws:
IOException
-
getConnection
-
main
- Throws:
InterruptedException
-