[Twisted-Python] Java question

Hello All, I am using twisted in a distributed app, and a portion of the system is in Java. This may be a little off topic, but is there a package for Java that provides any of: - reactors - deferred - Protocol Objects like twisted You get used to a paradigm, and would like to stay with it as you move between languages :-) Thanks, Mike ---------------------------------------------------------------- Michael Schneider Senior Software Engineering Consultant UGS PLM Solutions - an EDS Company "The Greatest Performance Improvement Is the transitioning from a non-working state to the working state"

On Tue, 2004-05-25 at 13:23, Schneider, Michael wrote:
This may be a little off topic, but is there a package for Java that provides any of: - reactors - deferred - Protocol Objects like twisted
I started some work on improving EIO, originally written by Zooko. It doesn't have a concept of Deferreds yet, and some of the APIs will no doubt change, but it's a start. http://java.twistedmatrix.com/eio/ -- Itamar Shtull-Trauring http://itamarst.org

On Tue, 2004-05-25 at 13:28, Itamar Shtull-Trauring wrote:
I started some work on improving EIO, originally written by Zooko. It doesn't have a concept of Deferreds yet, and some of the APIs will no doubt change, but it's a start.
Maybe it's obvious, but a suggestion: public class DeferredCallback { public Object callback(Object result) {} public Object errback(Failure failure) {} } public class Deferred { public Object defer(DeferredCallback dc) {...} } That way, foo.doIt().defer(new DeferredCallback() { public Object callback(Object result) { doneWithIt(); } public Object errback(Failure f) { whatTheHeck(); } }; I think that looks nice. Might also want a DeferredCallback.fromRunnable, etc.
participants (3)
-
Glyph Lefkowitz
-
Itamar Shtull-Trauring
-
Schneider, Michael