Package net.bluemind.lib.vertx.utils
Class CircuitBreaker<T>
java.lang.Object
net.bluemind.lib.vertx.utils.CircuitBreaker<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<R> CompletableFuture
<R> <R> CompletableFuture
<R> applyPromised
(io.vertx.core.Vertx vertx, T partitionable, Supplier<CompletableFuture<R>> to) void
noticeError
(T errorSource) void
noticeSuccess
(T errorSource)
-
Constructor Details
-
CircuitBreaker
-
-
Method Details
-
noticeError
-
noticeSuccess
-
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)
-