ydb-platform / ydb-java-sdk

YDB Java SDK
https://ydb.tech
Apache License 2.0
37 stars 21 forks source link

Add callback to AsyncReader for CommitResponse event #182

Closed pnv1 closed 5 months ago

pnv1 commented 1 year ago

https://github.com/ydb-platform/ydb-java-sdk/blob/develop/topic/src/main/java/tech/ydb/topic/read/events/ReadEventHandler.java There is currently no way for SDK users to get information about committed offsets rather than futures from message and batch commit() methods. A new DeferredCommitter class is going to be added soon. So there should be a way to subscribe on CommitResponse events from server.

pnv1 commented 5 months ago

https://github.com/ydb-platform/ydb-java-sdk/blob/develop/topic/src/main/java/tech/ydb/topic/read/events/ReadEventHandler.java#L10