documentation | download 0.1 src tgz | download 0.1 jar | more downloads | browse svn | home page
This is a completely minimal implementation of a select-based reactor framework for event-based asynchronous IO programming. The reactor core supports scheduling of tasks (a la Twisted, asio, etc.). This was written for the constrained-resource environment that is PlanetLab, mostly out of performance paranoia. It also helped us remove the need for a separate thread for the scheduled executor tasks - these are run in-line (using timeouts to select).
Aside from its simplicity, efficiency, and support for scheduled tasks, it also has no dependencies except for Java 6. Currently only UDP is supported.
For an example of how to use the reactor, please refer to ReactorTest.java
.
Apache Mina: we originally used this for SRON, but it is not as lightweight, lacked select-based time-scheduling, and also requires at least slf4j.
SRON: The project from which Java Reactor was born.
Java Reactor is released under the GNU GPL3.
Copyright 2008 Yang Zhang.
All rights reserved.
Back to assorted.sf.net.