سؤال

I'm currently looking at the dataflow model of concurrency as in Clojure and Groovy GPars. Is there any libraries written in pure Java that I can benefit from?

I know I can import or delegate to Clojure or Java, but I would like a nice and dedicated java API if possible.

هل كانت مفيدة؟

المحلول

There is Akka's dataflow module. It's underlying future/promises abstractions have a dedicated Java API, but the dataflow module is designed to be used from Scala. But depending on your exact needs, Akka's futures and promises could be enough. And they are very well designed, implemented and documented. There is even a book dedicated Akka's futures.

نصائح أخرى

df4j is, literally, "Data Flow For Java". I consider it as a good library, but note, I am the author :).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top