Class AsyncCallback

  • All Implemented Interfaces:
    org.apache.axis2.client.async.AxisCallback

    public class AsyncCallback
    extends Object
    implements org.apache.axis2.client.async.AxisCallback
    This class only "holds" the Synapse out message context for the Synapse callback message receiver when a response is received or error is encountered
    • Constructor Detail

      • AsyncCallback

        public AsyncCallback​(org.apache.axis2.context.MessageContext messageContext,
                             MessageContext synapseOutMsgCtx)
    • Method Detail

      • onMessage

        public void onMessage​(org.apache.axis2.context.MessageContext messageContext)
        Specified by:
        onMessage in interface org.apache.axis2.client.async.AxisCallback
      • onFault

        public void onFault​(org.apache.axis2.context.MessageContext messageContext)
        Specified by:
        onFault in interface org.apache.axis2.client.async.AxisCallback
      • onError

        public void onError​(Exception e)
        Specified by:
        onError in interface org.apache.axis2.client.async.AxisCallback
      • onComplete

        public void onComplete()
        Specified by:
        onComplete in interface org.apache.axis2.client.async.AxisCallback
      • getAxis2OutMsgCtx

        public org.apache.axis2.context.MessageContext getAxis2OutMsgCtx()
      • getTimeOutOn

        public long getTimeOutOn()
      • getTimeoutDuration

        public long getTimeoutDuration()
      • setTimeout

        public void setTimeout​(long timeoutDuration)
      • getTimeOutAction

        public int getTimeOutAction()
      • setTimeOutAction

        public void setTimeOutAction​(int timeOutAction)
      • isMarkedForRemoval

        public boolean isMarkedForRemoval()
        Check whether callback is marked for removal from the callback store
        Returns:
        whether callback is marked for removal from the callback store
      • setMarkedForRemoval

        public void setMarkedForRemoval()
        Mark callback to be removed from the callback store