org.xins.client.async
Class AsynchronousCall

java.lang.Object
  extended byorg.xins.client.async.AsynchronousCall

public class AsynchronousCall
extends Object

Class used to register the CallListeners and to call the API asynchronously.

Since:
XINS 1.4.0
Version:
$Revision: 1.8 $ $Date: 2006/08/28 09:12:34 $
Author:
Anthony Goubard

Constructor Summary
AsynchronousCall()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousCall

public AsynchronousCall()
Method Detail

addCallListener

public void addCallListener(CallListener listener)
Adds a new listener for the call.

Parameters:
listener - the listener that will be notified of the result of the call.

removeCallListener

public void removeCallListener(CallListener listener)
Removes a listener for the call. If the listener was not previously added nothing happens.

Parameters:
listener - the listener that will be notified of the result of the call.

call

public void call(AbstractCAPI capi,
                 AbstractCAPICallRequest request)
Calls a function asynchronously. This function does not return anything as the result and exception will be received by the registered CallListener.

Parameters:
capi - the CAPI to use to call the function.
request - the input parameters for this call.


See http://www.xins.org/.