44 |
|
|
45 |
public class SelectionKeyImpl extends AbstractSelectionKey |
public class SelectionKeyImpl extends AbstractSelectionKey |
46 |
{ |
{ |
47 |
int fd, ops; |
int fd; |
48 |
|
int readyOps; |
49 |
|
int interestOps; |
50 |
SelectorImpl impl; |
SelectorImpl impl; |
51 |
SelectableChannel ch; |
SelectableChannel ch; |
52 |
|
|
64 |
|
|
65 |
public int readyOps () |
public int readyOps () |
66 |
{ |
{ |
67 |
return 0; |
return readyOps; |
68 |
|
} |
69 |
|
|
70 |
|
public SelectionKey readyOps (int ops) |
71 |
|
{ |
72 |
|
readyOps = ops; |
73 |
|
return this; |
74 |
} |
} |
75 |
|
|
76 |
public int interestOps () |
public int interestOps () |
77 |
{ |
{ |
78 |
return ops; |
return interestOps; |
79 |
} |
} |
80 |
|
|
81 |
public SelectionKey interestOps (int ops) |
public SelectionKey interestOps (int ops) |
82 |
{ |
{ |
83 |
this.ops = ops; |
interestOps = ops; |
84 |
return this; |
return this; |
85 |
} |
} |
86 |
|
|