Class PrimaryOwnerOnlyCollector<T>
- java.lang.Object
-
- org.infinispan.interceptors.distribution.PrimaryOwnerOnlyCollector<T>
-
-
Constructor Summary
Constructors Constructor Description PrimaryOwnerOnlyCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<T>getFuture()voidprimaryException(Throwable throwable)The exception results of the primary owner.voidprimaryResult(T result, boolean success)The write operation's return value.
-
-
-
Method Detail
-
getFuture
public CompletableFuture<T> getFuture()
- Specified by:
getFuturein interfaceCollector<T>- Returns:
- The
CompletableFuturethat will be completed when all the acks are received.
-
primaryException
public void primaryException(Throwable throwable)
Description copied from interface:CollectorThe exception results of the primary owner.- Specified by:
primaryExceptionin interfaceCollector<T>- Parameters:
throwable- theThrowablethrow by the primary owner
-
primaryResult
public void primaryResult(T result, boolean success)
Description copied from interface:CollectorThe write operation's return value.- Specified by:
primaryResultin interfaceCollector<T>- Parameters:
result- the operation's return valuesuccess-trueif it was successful,falseotherwise (for conditional operations).
-
-