Class ClientCallback

java.lang.Object
org.apache.cxf.endpoint.ClientCallback
All Implemented Interfaces:
Future<Object[]>

public class ClientCallback extends Object implements Future<Object[]>
Asynchronous callback object for calls to Client.invoke(ClientCallback, String, Object...) and related functions. The default behavior of this expects the following pattern:
  1. ClientCallback cb = new ClientCallback();<>
  2. client.invoke(cb, "someMethod", ....);
  3. cb.wait();
  4. // CXF calls notify on the callback object when the operation is complete.