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 String
displayHandle(Object obj)
Future<?>
getFutureTask()
void
onComplete()
This is called at the end of the MEP no matter what happens, quite like a finally block.void
onComplete(MessageContext mc)
void
onError(Exception e)
This gets called ONLY when an internal processing exception occurs.void
onFault(MessageContext msgContext)
This gets called when a fault message is received.void
onMessage(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:AxisCallback
This gets called ONLY when an internal processing exception occurs.- Specified by:
onError
in interfaceAxisCallback
- Parameters:
e
- the Exception which caused the problem
-
onMessage
public void onMessage(MessageContext msgContext)
Description copied from interface:AxisCallback
This is called when we receive a message.- Specified by:
onMessage
in interfaceAxisCallback
- Parameters:
msgContext
- the (response) MessageContext
-
onComplete
public void onComplete()
Description copied from interface:AxisCallback
This is called at the end of the MEP no matter what happens, quite like a finally block.- Specified by:
onComplete
in interfaceAxisCallback
-
onFault
public void onFault(MessageContext msgContext)
Description copied from interface:AxisCallback
This gets called when a fault message is received.- Specified by:
onFault
in interfaceAxisCallback
- Parameters:
msgContext
- the MessageContext containing the fault.
-
-