01: /*
02: * $Id: CallListener.java,v 1.7 2007/09/18 08:45:07 agoubard Exp $
03: *
04: * Copyright 2003-2007 Orange Nederland Breedband B.V.
05: * See the COPYRIGHT file for redistribution and use restrictions.
06: */
07: package org.xins.client.async;
08:
09: import java.util.EventListener;
10:
11: /**
12: * Listener notified when the call to an API is finished whether it has
13: * succeeded or failed.
14: *
15: * @version $Revision: 1.7 $ $Date: 2007/09/18 08:45:07 $
16: * @author <a href="mailto:anthony.goubard@japplis.com">Anthony Goubard</a>
17: *
18: * @since XINS 1.4.0
19: */
20: public interface CallListener extends EventListener {
21:
22: /**
23: * Invoked when a successful result has been returned by the function.
24: *
25: * @param event
26: * the call event that has the result of the call.
27: */
28: void callSucceeded(CallSucceededEvent event);
29:
30: /**
31: * Invoked when the call to the function failed.
32: *
33: * @param event
34: * the call event that has the details of the failure.
35: */
36: void callFailed(CallFailedEvent event);
37: }
|