org.apache.axis2.jaxws.client.async
Class CallbackFuture
java.lang.Object
org.apache.axis2.client.async.Callback
org.apache.axis2.jaxws.client.async.CallbackFuture
public class CallbackFuture extends Callback
The CallbackFuture implements the Axis2 org.apache.axis2.client.async.Callback API
and will get registered with the Axis2 engine to receive the asynchronous callback responses.
This object is also responsible for taking the java.util.concurrent.Executor given
to it by the JAX-WS client and using that as the thread on which to deliver the async response
the JAX-WS javax.xml.ws.AsynchHandler.
Method Summary
java.util.concurrent.Future<?>
getFutureTask ()
void
onComplete (AsyncResult result)
Method is invoked by Axis2 once the asynchronous operation has completed
successfully.
void
onError (java.lang.Exception e)
Method invoked by Axis2 if the asynchronous operation fails.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
CallbackFuture
public CallbackFuture (InvocationContext ic,
AsyncHandler handler)
getFutureTask
public java.util.concurrent.Future<?> getFutureTask ()
onComplete
public void onComplete (AsyncResult result)
Description copied from class: Callback
Method is invoked by Axis2 once the asynchronous operation has completed
successfully.
Specified by: onComplete
in class Callback
onError
public void onError (java.lang.Exception e)
Description copied from class: Callback
Method invoked by Axis2 if the asynchronous operation fails.
Specified by: onError
in class Callback
Copyright © 2007 Apache Web Services Project. All Rights Reserved.