Uses of Enum
io.smallrye.faulttolerance.api.CircuitBreakerState
-
Uses of CircuitBreakerState in io.smallrye.faulttolerance.api
Methods in io.smallrye.faulttolerance.api that return CircuitBreakerStateModifier and TypeMethodDescriptionCircuitBreakerMaintenance.currentState(String name) Returns current state of the circuit breaker with givenname.static CircuitBreakerStateReturns the enum constant of this type with the specified name.static CircuitBreakerState[]CircuitBreakerState.values()Returns an array containing the constants of this enum type, in the order they are declared.Method parameters in io.smallrye.faulttolerance.api with type arguments of type CircuitBreakerStateModifier and TypeMethodDescriptionvoidCircuitBreakerMaintenance.onStateChange(String name, Consumer<CircuitBreakerState> callback) Registers acallbackto be called when the circuit breaker with givennamechanges state.FaultTolerance.Builder.CircuitBreakerBuilder.onStateChange(Consumer<CircuitBreakerState> callback) Deprecated, for removal: This API element is subject to removal in a future version.Guard.Builder.CircuitBreakerBuilder.onStateChange(Consumer<CircuitBreakerState> callback) Sets a callback that will be invoked upon each state change of this circuit breaker.TypedGuard.Builder.CircuitBreakerBuilder.onStateChange(Consumer<CircuitBreakerState> callback) Sets a callback that will be invoked upon each state change of this circuit breaker.