01: /*
02: * chat
03: *
04: * Enhydra super-servlet specification object
05: *
06: */
07:
08: package chat.spec;
09:
10: public interface DiscussionManager {
11:
12: public void addMessage(String name, String text);
13:
14: public void clear();
15:
16: public Snapshot getContents(long currentState, long wait);
17:
18: public void startHarvester(int lifetimeSec, int intervalSec);
19:
20: public void setMaxQueueSize(int maxQueueSize);
21:
22: public long getTotalReceived();
23:
24: public long getCurrentSize();
25:
26: public int getNumWaiting();
27:
28: public void stopHarvester();
29: }
|