144
|
1 package rep.handler;
|
|
2
|
213
|
3 import java.io.IOException;
|
|
4 import rep.REPCommand;
|
144
|
5 import rep.SessionManager;
|
213
|
6 import rep.channel.REPSelectionKey;
|
274
|
7 import rep.channel.REPSocketChannel;
|
144
|
8
|
|
9 public class REPHandlerDoWaiting implements REPHandler {
|
274
|
10 SessionManager manager;
|
144
|
11
|
|
12 public REPHandlerDoWaiting(SessionManager manager) {
|
274
|
13 this.manager = manager;
|
144
|
14 }
|
|
15
|
213
|
16 public void handle(REPSelectionKey<REPCommand> key) throws IOException {
|
150
|
17
|
|
18 }
|
274
|
19
|
|
20 public void cancel(REPSocketChannel<REPCommand> socketChannel) {
|
|
21 manager.remove(socketChannel);
|
267
|
22 }
|
|
23
|
144
|
24 }
|