Class PrimaryOwnerOnlyCollector<T>
java.lang.Object
org.infinispan.interceptors.distribution.PrimaryOwnerOnlyCollector<T>
- All Implemented Interfaces:
Collector<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprimaryException(Throwable throwable) The exception results of the primary owner.voidprimaryResult(T result, boolean success) The write operation's return value.
-
Constructor Details
-
PrimaryOwnerOnlyCollector
public PrimaryOwnerOnlyCollector()
-
-
Method Details
-
getFuture
- Specified by:
getFuturein interfaceCollector<T>- Returns:
- The
CompletableFuturethat will be completed when all the acks are received.
-
-
primaryResult
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).
-