Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在研究 Clojure 和 Groovy GPars 中的并发数据流模型。是否有任何用纯 Java 编写的库可以让我受益?
我知道我可以导入或委托给 Clojure 或 Java,但如果可能的话,我想要一个不错的专用 Java API。
有Akka的数据流模块。它的底层 future/promises 抽象有一个专用的 Java API,但数据流模块被设计为从 Scala 中使用。但根据您的具体需求,Akka 的 futures 和 promise 就足够了。它们的设计、实施和记录都非常好。甚至有一本书专门介绍 Akka 的未来。
df4j字面意思是“Java 的数据流”。我认为它是一个很好的库,但请注意,我是作者 :)。