Skip to content

Commit b0cd328

Browse files
committed
Add comments
1 parent d664306 commit b0cd328

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

topic/src/main/java/tech/ydb/topic/write/impl/WriterImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ protected CompletableFuture<CompletableFuture<WriteAck>> sendImpl(Message messag
269269
return tryToEnqueue(enqueuedMessage, instant).thenApply(v -> enqueuedMessage.getFuture());
270270
}
271271

272+
/**
273+
* Create a wrapper upon the future for the flush method.
274+
*
275+
* @return an empty Future if successful. Throw CompletionException when an error occurs.
276+
*/
272277
protected CompletableFuture<Void> flushImpl() {
273278
if (this.lastAcceptedMessageFuture == null) {
274279
return CompletableFuture.completedFuture(null);

0 commit comments

Comments
 (0)