org.apache.synapse.core.axis2
Class AsyncCallback

java.lang.Object
  extended by org.apache.synapse.core.axis2.AsyncCallback
All Implemented Interfaces:
AxisCallback

public class AsyncCallback
extends Object
implements 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 Summary
AsyncCallback(MessageContext synapseOutMsgCtx)
           
 
Method Summary
 MessageContext getSynapseOutMsgCtx()
           
 int getTimeOutAction()
           
 long getTimeOutOn()
           
 void onComplete()
           
 void onError(Exception e)
           
 void onFault(MessageContext messageContext)
           
 void onMessage(MessageContext messageContext)
           
 void setTimeOutAction(int timeOutAction)
           
 void setTimeOutOn(long timeOutOn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncCallback

public AsyncCallback(MessageContext synapseOutMsgCtx)
Method Detail

onMessage

public void onMessage(MessageContext messageContext)
Specified by:
onMessage in interface AxisCallback

onFault

public void onFault(MessageContext messageContext)
Specified by:
onFault in interface AxisCallback

onError

public void onError(Exception e)
Specified by:
onError in interface AxisCallback

onComplete

public void onComplete()
Specified by:
onComplete in interface AxisCallback

getSynapseOutMsgCtx

public MessageContext getSynapseOutMsgCtx()

getTimeOutOn

public long getTimeOutOn()

setTimeOutOn

public void setTimeOutOn(long timeOutOn)

getTimeOutAction

public int getTimeOutAction()

setTimeOutAction

public void setTimeOutAction(int timeOutAction)


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.