EventStore / EventStoreDB-Client-Java

Official Asynchronous Java 8+ Client Library for EventStoreDB 20.6+
https://eventstore.com
Apache License 2.0
63 stars 20 forks source link

Add type information to CompletableFuture in EventStoreDBPersistentSubscriptionsClient #96

Closed dpasek-senacor closed 3 years ago

dpasek-senacor commented 3 years ago

Add type information to CompletableFuture for subscribing to a persistent subscription in the EventStoreDBPersistentSubscriptionsClient.

Unifies the API for subscribing to streams between regular subscriptions and persistent subscriptions and is needed to properly control the lifecycle of the PersistentSubscription, i.e. cancelling the subscription, acknowledgement etc.