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