Asynchronous client structure

The following section provides the steps to create an asynchronous client.

Asynchronous client flow

The flow for an asynchronous client is very similar to that of a synchronous client.

Differences in the flow for synchronous and asynchronous clients are highlighted below:

4. The client calls the Connection.createSession( ) method on the Connection object and passes in a SessionCallback object to the method.

12. Symphony sends the output back to the client as soon as it is ready. A separate thread is used to invoke the onResponse() method on the callback that was provided at the time of session creation. The onResponse() receives a TaskOutputHandle argument that contains the output from the service.