org.licas.call

## Class ClientConnectionAsync

- java.lang.Object
- - org.licas.call.ClientConnection
  - - org.licas.call.ClientConnectionAsync

-     public class ClientConnectionAsync
      extends ClientConnection

  This class manages the connection and thread to process a non-blocking http client request and reply. This uses the asynchronous Java `nio` classes, with a `ByteBuffer` and does not expect a reply from the messags sent.
  Author:
    Kieran Greer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ClientConnectionAsync()` Create a new instance of ClientConnectionAsync.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Object` | `execute(MethodInfo methodInfo)` Execute the http asynchronous client request using the default threading.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ClientConnectionAsync

          public ClientConnectionAsync()

      Create a new instance of ClientConnectionAsync.

  - ### Method Detail

    - #### execute

          public java.lang.Object execute(MethodInfo methodInfo)
                                   throws java.lang.Exception

      Execute the http asynchronous client request using the default threading. This will send some data and then return immediately. It is possible to wait for a reply, but that could lead to blocked channels for larger message transactions. For licas, it returns immediately.
      Specified by:
        `execute` in class `ClientConnection`
      Parameters:
        `methodInfo` - the method call description with all of the required information.
      Returns:
        Object the reply to the call.
      Throws:
        `java.lang.Exception` - any error.