Class _AsyncClientSocket

java.lang.Object
org.nustaq.kontraktor.asyncio._AsyncClientSocket
All Implemented Interfaces:
java.lang.Runnable

public class _AsyncClientSocket
extends java.lang.Object
implements java.lang.Runnable
Created by ruedi on 08/05/15. ALPHA has serious issues.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  _AsyncClientSocket.CLSActor  
  • Constructor Summary

    Constructors 
    Constructor Description
    _AsyncClientSocket()  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    IPromise connect​(java.lang.String host, int port, java.util.function.BiFunction<java.nio.channels.SelectionKey,​java.nio.channels.SocketChannel,​AsyncSocketConnection> connectionFactory)  
    AsyncSocketConnection getConnection()  
    boolean isClosed()  
    static void main​(java.lang.String[] a)  
    void run()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • connect

      public IPromise connect​(java.lang.String host, int port, java.util.function.BiFunction<java.nio.channels.SelectionKey,​java.nio.channels.SocketChannel,​AsyncSocketConnection> connectionFactory)
    • run

      public void run()
      Specified by:
      run in interface java.lang.Runnable
    • isClosed

      public boolean isClosed()
    • close

      public void close() throws java.io.IOException
      Throws:
      java.io.IOException
    • getConnection

      public AsyncSocketConnection getConnection()
    • main

      public static void main​(java.lang.String[] a) throws java.lang.InterruptedException
      Throws:
      java.lang.InterruptedException