public interface Collector<T>
Modifier and Type | Method and Description |
---|---|
CompletableFuture<T> |
getFuture() |
void |
primaryException(Throwable throwable)
The exception results of the primary owner.
|
void |
primaryResult(T result,
boolean success)
The write operation's return value.
|
CompletableFuture<T> getFuture()
CompletableFuture
that will be completed when all the acks are received.void primaryException(Throwable throwable)
throwable
- the Throwable
throw by the primary ownervoid primaryResult(T result, boolean success)
result
- the operation's return valuesuccess
- true
if it was successful, false
otherwise (for conditional operations).Copyright © 2021 JBoss by Red Hat. All rights reserved.