Package org.infinispan.scattered
Interface BiasManager.Revocation
-
- All Superinterfaces:
java.util.function.BiConsumer<java.lang.Object,java.lang.Throwable>
- Enclosing interface:
- BiasManager
public static interface BiasManager.Revocation extends java.util.function.BiConsumer<java.lang.Object,java.lang.Throwable>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaccept(java.lang.Object nil, java.lang.Throwable throwable)java.util.List<Address>biased()voidcomplete()voidfail()<T> java.util.concurrent.CompletableFuture<T>handleCompose(java.util.function.Supplier<java.util.concurrent.CompletionStage<T>> supplier)Similar toCompletableFuture.thenCompose(Function), returns future provided by the supplier after the current revocation has been finishedbooleanshouldRevoke()java.util.concurrent.CompletionStage<?>toCompletionStage()
-
-
-
Method Detail
-
shouldRevoke
boolean shouldRevoke()
-
biased
java.util.List<Address> biased()
-
complete
void complete()
-
fail
void fail()
-
toCompletionStage
java.util.concurrent.CompletionStage<?> toCompletionStage()
-
handleCompose
<T> java.util.concurrent.CompletableFuture<T> handleCompose(java.util.function.Supplier<java.util.concurrent.CompletionStage<T>> supplier)
Similar toCompletableFuture.thenCompose(Function), returns future provided by the supplier after the current revocation has been finished- Parameters:
supplier-- Returns:
-
accept
default void accept(java.lang.Object nil, java.lang.Throwable throwable)- Specified by:
acceptin interfacejava.util.function.BiConsumer<java.lang.Object,java.lang.Throwable>
-
-