01: package vicazh.hyperpool.stream.net.http;
02:
03: import vicazh.hyperpool.stream.Element;
04:
05: class ContentSyncConnection extends Connection {
06: ContentSyncConnection() {
07: }
08:
09: ContentSyncConnection(Element element) {
10: super (element);
11: }
12:
13: synchronized public void close() {
14: super .close();
15: notifyAll();
16: }
17:
18: synchronized public void remove(Session session) {
19: super .remove(session);
20: if (getSessions().size() == 1)
21: notify();
22: }
23:
24: }
|