public class AsyncCallback extends Object implements org.apache.axis2.client.async.AxisCallback
Constructor and Description |
---|
AsyncCallback(org.apache.axis2.context.MessageContext messageContext,
MessageContext synapseOutMsgCtx) |
Modifier and Type | Method and Description |
---|---|
org.apache.axis2.context.MessageContext |
getAxis2OutMsgCtx() |
MessageContext |
getSynapseOutMsgCtx() |
int |
getTimeOutAction() |
long |
getTimeoutDuration() |
long |
getTimeOutOn() |
SynapseConstants.ENDPOINT_TIMEOUT_TYPE |
getTimeoutType() |
boolean |
isMarkedForRemoval()
Check whether callback is marked for removal from the callback store
|
void |
onComplete() |
void |
onError(Exception e) |
void |
onFault(org.apache.axis2.context.MessageContext messageContext) |
void |
onMessage(org.apache.axis2.context.MessageContext messageContext) |
void |
setMarkedForRemoval()
Mark callback to be removed from the callback store
|
void |
setTimeout(long timeoutDuration) |
void |
setTimeOutAction(int timeOutAction) |
void |
setTimeoutType(SynapseConstants.ENDPOINT_TIMEOUT_TYPE timeoutType) |
public AsyncCallback(org.apache.axis2.context.MessageContext messageContext, MessageContext synapseOutMsgCtx)
public void onMessage(org.apache.axis2.context.MessageContext messageContext)
onMessage
in interface org.apache.axis2.client.async.AxisCallback
public void onFault(org.apache.axis2.context.MessageContext messageContext)
onFault
in interface org.apache.axis2.client.async.AxisCallback
public void onError(Exception e)
onError
in interface org.apache.axis2.client.async.AxisCallback
public void onComplete()
onComplete
in interface org.apache.axis2.client.async.AxisCallback
public MessageContext getSynapseOutMsgCtx()
public org.apache.axis2.context.MessageContext getAxis2OutMsgCtx()
public long getTimeOutOn()
public long getTimeoutDuration()
public void setTimeout(long timeoutDuration)
public int getTimeOutAction()
public void setTimeOutAction(int timeOutAction)
public SynapseConstants.ENDPOINT_TIMEOUT_TYPE getTimeoutType()
public void setTimeoutType(SynapseConstants.ENDPOINT_TIMEOUT_TYPE timeoutType)
public boolean isMarkedForRemoval()
public void setMarkedForRemoval()
Copyright © 2005–2020 Apache Software Foundation. All rights reserved.