| ClientAdapter.java |
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.core;
5
6 import java.io.IOException;
7
8 /**
9 * Adapter interface for encapsulation of specific HTTP clients.
10 *
11 * @author Just van den Broecke - Just Objects ©
12 * @version $Id: ClientAdapter.java,v 1.8 2007/11/23 14:33:07 justb Exp $
13 */
14public interface ClientAdapter {
15
16 /**
17 * Start event push.
18 */
19 public void start() throws IOException;
20
21 /**
22 * Push single Event to client.
23 */
24 public void push(Event anEvent) throws IOException;
25
26 /**
27 * Stop event push.
28 */
29 public void stop() throws IOException;
30}
31
32/*
33 * $Log: ClientAdapter.java,v $
34 * Revision 1.8 2007/11/23 14:33:07 justb
35 * core classes now configurable through factory
36 *
37 * Revision 1.7 2005/02/28 12:45:59 justb
38 * introduced Command class
39 *
40 * Revision 1.6 2005/02/21 11:50:45 justb
41 * ohase1 of refactoring Subscriber into Session/Controller/Subscriber
42 *
43 * Revision 1.5 2005/02/18 10:07:23 justb
44 * many renamings of classes (make names compact)
45 *
46 * Revision 1.4 2004/09/03 22:35:37 justb
47 * Almost complete rewrite, just checking in now
48 *
49 * Revision 1.3 2003/08/15 08:37:40 justb
50 * fix/add Copyright+LGPL file headers and footers
51 *
52 * Revision 1.2 2003/05/18 16:15:08 justb
53 * support for XML encoded Events
54 *
55 * Revision 1.1.1.1 2002/09/24 21:02:30 justb
56 * import to sourceforge
57 *
58 * Revision 1.1.1.1 2002/09/20 22:48:17 justb
59 * import to SF
60 *
61 * Revision 1.1.1.1 2002/09/20 14:19:03 justb
62 * first import into SF
63 *
64 * Revision 1.3 2002/04/15 20:42:41 just
65 * reformatting and renaming GuardedQueue to EventQueue
66 *
67 * Revision 1.2 2000/08/21 20:48:29 just
68 * added CVS log and id tags plus copyrights
69 *
70 *
71 */
72
73| ClientAdapter.java |