public class SynapseCallbackReceiver extends Object implements org.apache.axis2.engine.MessageReceiver
Modifier and Type | Method and Description |
---|---|
void |
addCallback(String MsgID,
org.apache.axis2.client.async.AxisCallback callback) |
void |
destroy()
Destroy and cleanup this callback receiver instance
|
int |
getCallbackCount() |
static SynapseCallbackReceiver |
getInstance()
Get the singleton SynapseCallbackReceiver instance
|
String[] |
getPendingCallbacks() |
void |
init(SynapseConfiguration synCfg,
ServerContextInformation contextInformation)
Initialize the singleton instance of this class that would be used by all anonymous services
used for outgoing messaging.
|
void |
receive(org.apache.axis2.context.MessageContext messageCtx)
Every time a response message is received this method gets invoked.
|
public static SynapseCallbackReceiver getInstance()
public void init(SynapseConfiguration synCfg, ServerContextInformation contextInformation)
synCfg
- the Synapse configurationcontextInformation
- server runtime informationpublic void destroy()
public int getCallbackCount()
public String[] getPendingCallbacks()
public void addCallback(String MsgID, org.apache.axis2.client.async.AxisCallback callback)
public void receive(org.apache.axis2.context.MessageContext messageCtx) throws org.apache.axis2.AxisFault
receive
in interface org.apache.axis2.engine.MessageReceiver
messageCtx
- the Axis2 message context of the reply receivedorg.apache.axis2.AxisFault
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.