Class CircuitBreaker<T>

java.lang.Object
net.bluemind.lib.vertx.utils.CircuitBreaker<T>

public class CircuitBreaker<T> extends Object
  • Constructor Details

  • Method Details

    • noticeError

      public void noticeError(T errorSource)
    • noticeSuccess

      public void noticeSuccess(T errorSource)
    • applyCall

      public <R> CompletableFuture<R> applyCall(io.vertx.core.Vertx vertx, T partitionable, Callable<R> to)
    • applyPromised

      public <R> CompletableFuture<R> applyPromised(io.vertx.core.Vertx vertx, T partitionable, Supplier<CompletableFuture<R>> to)