KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > nl > justobjects > pushlet > client > PushletClientListener


1 // Copyright (c) 2000 Just Objects B.V. <just@justobjects.nl>
2
// Distributable under LGPL license. See terms of license at gnu.org.
3

4 package nl.justobjects.pushlet.client;
5
6 import nl.justobjects.pushlet.core.Event;
7 import nl.justobjects.pushlet.core.Protocol;
8
9 /**
10  * Interface for listener of the PushletClient object.
11  *
12  * @version $Id: PushletClientListener.java,v 1.5 2005/02/21 11:50:37 justb Exp $
13  * @author Just van den Broecke - Just Objects &copy;
14  **/

15 public interface PushletClientListener extends Protocol {
16     /** Abort event from server. */
17     public void onAbort(Event theEvent);
18
19     /** Data event from server. */
20     public void onData(Event theEvent);
21
22     /** Heartbeat event from server. */
23     public void onHeartbeat(Event theEvent);
24
25     /** Error occurred. */
26     public void onError(String JavaDoc message);
27 }
28
29 /*
30 * $Log: PushletClientListener.java,v $
31 * Revision 1.5 2005/02/21 11:50:37 justb
32 * ohase1 of refactoring Subscriber into Session/Controller/Subscriber
33 *
34 * Revision 1.4 2005/02/15 15:46:31 justb
35 * client API improves
36 *
37 * Revision 1.3 2004/10/24 12:58:18 justb
38 * revised client and test classes for new protocol
39 *
40 * Revision 1.2 2004/09/03 22:35:37 justb
41 * Almost complete rewrite, just checking in now
42 *
43 * Revision 1.1 2004/03/10 20:14:17 justb
44 * renamed all *JavaPushletClient* to *PushletClient*
45 *
46 * Revision 1.3 2003/08/15 08:37:40 justb
47 * fix/add Copyright+LGPL file headers and footers
48 *
49 *
50 */
Popular Tags