- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://aol.github.io/simple-react/
- 软件文档: http://www.javadoc.io/doc/com.aol.simplereact/simple-react/0.85
软件介绍
Simple-React 为 Java 8 增加了高级异步 Streams 和数据结构。这是一个 Java 8 的并发流库,提供三中 Stream 类型(LazyFutureStream、SimpleReactStream、EagerFutureStream)和三种异步数据结构(Queue、Topic、Signal)。
流类型:
数据结构:
示例代码:
List<String> results = LazyFutureStream.sequentialBuilder() .react(()->”new event1",()->”new event2") .retry(this::unreliable) .onFail(e->”default”) .peek(System.out::println) .capture(Throwable::printStackTrace) .block();
