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 java.util.concurrent.CompletableFuture<T>
getFuture()
void
primaryException(java.lang.Throwable throwable)
The exception results of the primary owner.void
primaryResult(T result, boolean success)
The write operation's return value.
-
-
-
Method Detail
-
getFuture
public java.util.concurrent.CompletableFuture<T> getFuture()
-
primaryException
public void primaryException(java.lang.Throwable throwable)
Description copied from interface:Collector
The exception results of the primary owner.- Specified by:
primaryException
in interfaceCollector<T>
- Parameters:
throwable
- theThrowable
throw by the primary owner
-
primaryResult
public void primaryResult(T result, boolean success)
Description copied from interface:Collector
The write operation's return value.- Specified by:
primaryResult
in interfaceCollector<T>
- Parameters:
result
- the operation's return valuesuccess
-true
if it was successful,false
otherwise (for conditional operations).
-
-