Skip to content

Commit b15d351

Browse files
committed
doc
1 parent 4c5af39 commit b15d351

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/common/ProgressListenableActionFuture.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ private record PositionAndListener(long position, ActionListener<Long> listener)
3232
final long end;
3333

3434
/**
35-
* A consumer that accepts progress made by this {@link ProgressListenableActionFuture}
35+
* A consumer that accepts progress made by this {@link ProgressListenableActionFuture}. The consumer is called before listeners are
36+
* notified of the updated progress value in {@link #onProgress(long)}. The consumer can be called with out-of-order progress values.
3637
*/
3738
@Nullable
3839
private final LongConsumer progressConsumer;
@@ -45,8 +46,9 @@ private record PositionAndListener(long position, ActionListener<Long> listener)
4546
* Creates a {@link ProgressListenableActionFuture} that accepts the progression
4647
* to be within {@code start} (inclusive) and {@code end} (exclusive) values.
4748
*
48-
* @param start the start (inclusive)
49-
* @param end the end (exclusive)
49+
* @param start the start (inclusive)
50+
* @param end the end (exclusive)
51+
* @param progressConsumer a consumer that accepts the progress made by this {@link ProgressListenableActionFuture}
5052
*/
5153
ProgressListenableActionFuture(long start, long end, @Nullable LongConsumer progressConsumer) {
5254
super();

0 commit comments

Comments
 (0)