public class CircuitBreaker<T>
extends java.lang.Object
Constructor and Description |
---|
CircuitBreaker(java.lang.String name,
java.util.function.Function<T,java.lang.String> partition) |
Modifier and Type | Method and Description |
---|---|
<R> java.util.concurrent.CompletableFuture<R> |
applyCall(io.vertx.core.Vertx vertx,
T partitionable,
java.util.concurrent.Callable<R> to) |
<R> java.util.concurrent.CompletableFuture<R> |
applyPromised(io.vertx.core.Vertx vertx,
T partitionable,
java.util.function.Supplier<java.util.concurrent.CompletableFuture<R>> to) |
void |
noticeError(T errorSource) |
void |
noticeSuccess(T errorSource) |
public CircuitBreaker(java.lang.String name, java.util.function.Function<T,java.lang.String> partition)
public void noticeError(T errorSource)
public void noticeSuccess(T errorSource)
public <R> java.util.concurrent.CompletableFuture<R> applyCall(io.vertx.core.Vertx vertx, T partitionable, java.util.concurrent.Callable<R> to)
public <R> java.util.concurrent.CompletableFuture<R> applyPromised(io.vertx.core.Vertx vertx, T partitionable, java.util.function.Supplier<java.util.concurrent.CompletableFuture<R>> to)
Copyright © 2021. All Rights Reserved.