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 to CompletableFuture.thenCompose(Function), returns future provided by the supplier after the current revocation has been finished
      boolean shouldRevoke()  
      java.util.concurrent.CompletionStage<?> toCompletionStage()  
      • Methods inherited from interface java.util.function.BiConsumer

        andThen
    • 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 to CompletableFuture.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 interface java.util.function.BiConsumer<java.lang.Object,​java.lang.Throwable>