[JAVA-2506] Create async driver API based on Java 9's Flow API Created: 03/May/17  Updated: 15/Apr/20  Resolved: 15/Apr/20

Status: Closed
Project: Java Driver
Component/s: API, Async
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Won't Fix Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Java 9 introduces a reactive streams-based API in the class java.util.concurrent.Flow, which defines three relevant static interfaces:

  • Publisher
  • Subscriber
  • Subscription

We should provide a new API based on these interfaces, similar to our rxjava and reactivestreams drivers. But since these are core APIs in the JDK we can offer these in a module of the main driver (e.g driver-flow or driver-async-flow).



 Comments   
Comment by Jeffrey Yemin [ 15/Apr/20 ]

Reactive Streams has won for now so we don't have appetite for yet another API

Comment by Ross Lawley [ 26/Nov/18 ]

As mentioned above there are libraries that build upon Reactive Streams concepts such as RxJava2 and project Reactor, that also accept Flowable types. 

For the time being a separate Flowable based API is not considered worth scheduling.

Comment by Jeffrey Yemin [ 14/Dec/17 ]

There are adapters from Reactive Streams to Flowable so postponing this for now.

Generated at Thu Feb 08 08:57:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.