public class AsynchronousCall extends Object
CallListener
s and to call the API
asynchronously.Constructor and Description |
---|
AsynchronousCall() |
Modifier and Type | Method and Description |
---|---|
void |
addCallListener(CallListener listener)
Adds a new listener for the call.
|
void |
call(AbstractCAPI capi,
AbstractCAPICallRequest request)
Calls a function asynchronously.
|
void |
removeCallListener(CallListener listener)
Removes a listener for the call.
|
public void addCallListener(CallListener listener)
listener
- the listener that will be notified of the result of the call.public void removeCallListener(CallListener listener)
listener
- the listener that will be notified of the result of the call.public void call(AbstractCAPI capi, AbstractCAPICallRequest request)
CallListener
.capi
- the CAPI to use to call the function.request
- the input parameters for this call.See http://www.xins.org/.