01: package vicazh.hyperpool.stream.net.http;
02:
03: class RefererConnection extends Connection {
04: RefererConnection(Selector selector) {
05: super (selector);
06: }
07:
08: protected Session getSession() {
09: return new RefererSession(this );
10: }
11:
12: synchronized public void close() {
13: super .close();
14: notifyAll();
15: }
16:
17: synchronized public void remove(Session session) {
18: super .remove(session);
19: if (getSessions().size() == 1)
20: notify();
21: }
22:
23: boolean b;
24: }
|