Class CallbackFuture
- java.lang.Object
-
- org.apache.axis2.jaxws.client.async.CallbackFuture
-
- All Implemented Interfaces:
org.apache.axis2.client.async.AxisCallback
public class CallbackFuture extends Object implements org.apache.axis2.client.async.AxisCallback
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.
-
-
Constructor Summary
Constructors Constructor Description CallbackFuture(InvocationContext ic, AsyncHandler handler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringdisplayHandle(Object obj)Future<?>getFutureTask()voidonComplete()voidonComplete(org.apache.axis2.context.MessageContext mc)voidonError(Exception e)voidonFault(org.apache.axis2.context.MessageContext msgContext)voidonMessage(org.apache.axis2.context.MessageContext msgContext)
-
-
-
Constructor Detail
-
CallbackFuture
public CallbackFuture(InvocationContext ic, AsyncHandler handler)
-
-
Method Detail
-
getFutureTask
public Future<?> getFutureTask()
-
onComplete
public void onComplete(org.apache.axis2.context.MessageContext mc)
-
onError
public void onError(Exception e)
- Specified by:
onErrorin interfaceorg.apache.axis2.client.async.AxisCallback
-
onMessage
public void onMessage(org.apache.axis2.context.MessageContext msgContext)
- Specified by:
onMessagein interfaceorg.apache.axis2.client.async.AxisCallback
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceorg.apache.axis2.client.async.AxisCallback
-
onFault
public void onFault(org.apache.axis2.context.MessageContext msgContext)
- Specified by:
onFaultin interfaceorg.apache.axis2.client.async.AxisCallback
-
-