KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > net > nio > dispatcher > DefaultDispatcher


1 package org.sapia.ubik.net.nio.dispatcher;
2
3 import java.io.IOException JavaDoc;
4
5 import org.sapia.ubik.net.nio.Cycle;
6 import org.sapia.ubik.net.nio.Dispatcher;
7
8 /**
9  * The default dispatcher implementation. Performs all operations in the calling
10  * thread (more specifically, the selector thread). It is a very suboptimal implementation
11  * if requests are long-lived, but results in less latency if requests are short-lived..
12  *
13  * @author Yanick Duchesne
14  *
15  * <dl>
16  * <dt><b>Copyright: </b>
17  * <dd>Copyright &#169; 2002-2005 <a HREF="http://www.sapia-oss.org">Sapia Open
18  * Source Software </a>. All Rights Reserved.</dd>
19  * </dt>
20  * <dt><b>License: </b>
21  * <dd>Read the license.txt file of the jar or visit the <a
22  * HREF="http://www.sapia-oss.org/license.html">license page </a> at the Sapia
23  * OSS web site</dd>
24  * </dt>
25  * </dl>
26  */

27 public class DefaultDispatcher implements Dispatcher {
28
29   /**
30    * @see org.sapia.ubik.net.nio.Dispatcher#dispatch(org.sapia.ubik.net.nio.Cycle)
31    */

32   public void dispatch(Cycle cycle) throws IOException JavaDoc {
33     new CycleCommand().init(cycle).run();
34   }
35
36   /**
37    * @see org.sapia.ubik.net.nio.Dispatcher#close()
38    */

39   public void close() {
40   }
41
42 }
43
Popular Tags