Crossfire JXClient, Trunk
Public Member Functions | Package Functions | Private Member Functions | Private Attributes | List of all members
Dispatcher1 Class Reference
Inheritance diagram for Dispatcher1:
Inheritance graph
Collaboration diagram for Dispatcher1:
Collaboration graph

Public Member Functions

void register (SelectableChannel ch, int ops, Handler h) throws IOException
 
void run ()
 

Package Functions

 Dispatcher1 () throws IOException
 

Private Member Functions

void dispatch () throws IOException
 

Private Attributes

Selector sel
 

Detailed Description

A single-threaded dispatcher.

When a SelectionKey is ready, it dispatches the job in this thread.

Author
Mark Reinhold
Brad R. Wetmore

Definition at line 54 of file Dispatcher1.java.

Constructor & Destructor Documentation

◆ Dispatcher1()

Dispatcher1.Dispatcher1 ( ) throws IOException
package

Definition at line 58 of file Dispatcher1.java.

References sel.

Member Function Documentation

◆ dispatch()

void Dispatcher1.dispatch ( ) throws IOException
private

Definition at line 73 of file Dispatcher1.java.

References Handler.handle(), and sel.

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ register()

void Dispatcher1.register ( SelectableChannel  ch,
int  ops,
Handler  h 
) throws IOException

Implements Dispatcher.

Definition at line 83 of file Dispatcher1.java.

References sel.

◆ run()

void Dispatcher1.run ( )

Definition at line 63 of file Dispatcher1.java.

References dispatch().

Here is the call graph for this function:

Member Data Documentation

◆ sel

Selector Dispatcher1.sel
private

Definition at line 56 of file Dispatcher1.java.

Referenced by dispatch(), Dispatcher1(), and register().


The documentation for this class was generated from the following file: