annotate rep/handler/REPHandlerDoWaiting.java @ 274:ad487e63e3c8

*** empty log message ***
author kono
date Wed, 24 Sep 2008 15:49:09 +0900 (2008-09-24)
parents c513cf1ce9cc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
144
0bf7f8d0f5f7 *** empty log message ***
pin
parents:
diff changeset
1 package rep.handler;
0bf7f8d0f5f7 *** empty log message ***
pin
parents:
diff changeset
2
213
4d9b32666ed2 *** empty log message ***
pin
parents: 150
diff changeset
3 import java.io.IOException;
4d9b32666ed2 *** empty log message ***
pin
parents: 150
diff changeset
4 import rep.REPCommand;
144
0bf7f8d0f5f7 *** empty log message ***
pin
parents:
diff changeset
5 import rep.SessionManager;
213
4d9b32666ed2 *** empty log message ***
pin
parents: 150
diff changeset
6 import rep.channel.REPSelectionKey;
274
ad487e63e3c8 *** empty log message ***
kono
parents: 267
diff changeset
7 import rep.channel.REPSocketChannel;
144
0bf7f8d0f5f7 *** empty log message ***
pin
parents:
diff changeset
8
0bf7f8d0f5f7 *** empty log message ***
pin
parents:
diff changeset
9 public class REPHandlerDoWaiting implements REPHandler {
274
ad487e63e3c8 *** empty log message ***
kono
parents: 267
diff changeset
10 SessionManager manager;
144
0bf7f8d0f5f7 *** empty log message ***
pin
parents:
diff changeset
11
0bf7f8d0f5f7 *** empty log message ***
pin
parents:
diff changeset
12 public REPHandlerDoWaiting(SessionManager manager) {
274
ad487e63e3c8 *** empty log message ***
kono
parents: 267
diff changeset
13 this.manager = manager;
144
0bf7f8d0f5f7 *** empty log message ***
pin
parents:
diff changeset
14 }
0bf7f8d0f5f7 *** empty log message ***
pin
parents:
diff changeset
15
213
4d9b32666ed2 *** empty log message ***
pin
parents: 150
diff changeset
16 public void handle(REPSelectionKey<REPCommand> key) throws IOException {
150
dce41e665edb *** empty log message ***
pin
parents: 144
diff changeset
17
dce41e665edb *** empty log message ***
pin
parents: 144
diff changeset
18 }
274
ad487e63e3c8 *** empty log message ***
kono
parents: 267
diff changeset
19
ad487e63e3c8 *** empty log message ***
kono
parents: 267
diff changeset
20 public void cancel(REPSocketChannel<REPCommand> socketChannel) {
ad487e63e3c8 *** empty log message ***
kono
parents: 267
diff changeset
21 manager.remove(socketChannel);
267
c513cf1ce9cc call handle.cancel() on socket channel close.
kono
parents: 213
diff changeset
22 }
c513cf1ce9cc call handle.cancel() on socket channel close.
kono
parents: 213
diff changeset
23
144
0bf7f8d0f5f7 *** empty log message ***
pin
parents:
diff changeset
24 }