Class CallbackFuture
- java.lang.Object
-
- org.apache.axis2.jaxws.client.async.CallbackFuture
-
- All Implemented Interfaces:
AxisCallback
public class CallbackFuture extends Object implements 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()This is called at the end of the MEP no matter what happens, quite like a finally block.voidonComplete(MessageContext mc)voidonError(Exception e)This gets called ONLY when an internal processing exception occurs.voidonFault(MessageContext msgContext)This gets called when a fault message is received.voidonMessage(MessageContext msgContext)This is called when we receive a message.
-
-
-
Constructor Detail
-
CallbackFuture
public CallbackFuture(InvocationContext ic, AsyncHandler handler)
-
-
Method Detail
-
getFutureTask
public Future<?> getFutureTask()
-
onComplete
public void onComplete(MessageContext mc)
-
onError
public void onError(Exception e)
Description copied from interface:AxisCallbackThis gets called ONLY when an internal processing exception occurs.- Specified by:
onErrorin interfaceAxisCallback- Parameters:
e- the Exception which caused the problem
-
onMessage
public void onMessage(MessageContext msgContext)
Description copied from interface:AxisCallbackThis is called when we receive a message.- Specified by:
onMessagein interfaceAxisCallback- Parameters:
msgContext- the (response) MessageContext
-
onComplete
public void onComplete()
Description copied from interface:AxisCallbackThis is called at the end of the MEP no matter what happens, quite like a finally block.- Specified by:
onCompletein interfaceAxisCallback
-
onFault
public void onFault(MessageContext msgContext)
Description copied from interface:AxisCallbackThis gets called when a fault message is received.- Specified by:
onFaultin interfaceAxisCallback- Parameters:
msgContext- the MessageContext containing the fault.
-
-