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 void
accept(java.lang.Object nil, java.lang.Throwable throwable)
java.util.List<Address>
biased()
void
complete()
void
fail()
<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 finishedboolean
shouldRevoke()
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:
accept
in interfacejava.util.function.BiConsumer<java.lang.Object,java.lang.Throwable>
-
-