Crossfire JXClient, Trunk
|
Public Member Functions | |
void | register (SelectableChannel ch, int ops, Handler h) throws IOException |
void | run () |
Package Functions | |
DispatcherN () throws IOException | |
Private Member Functions | |
void | dispatch () throws IOException |
Private Attributes | |
Object | gate = new Object() |
Selector | sel |
A Multi-threaded dispatcher.
In this example, one thread does accepts, and the second does read/writes.
Definition at line 54 of file DispatcherN.java.
|
package |
Definition at line 58 of file DispatcherN.java.
References sel.
|
private |
Definition at line 74 of file DispatcherN.java.
References gate, Handler.handle(), and sel.
Referenced by run().
void DispatcherN.register | ( | SelectableChannel | ch, |
int | ops, | ||
Handler | h | ||
) | throws IOException |
void DispatcherN.run | ( | ) |
Definition at line 62 of file DispatcherN.java.
References dispatch().
|
private |
Definition at line 72 of file DispatcherN.java.
Referenced by dispatch(), and register().
|
private |
Definition at line 56 of file DispatcherN.java.
Referenced by dispatch(), DispatcherN(), and register().