| Package | Description |
|---|---|
| com.alibaba.csp.sentinel.slots.block.degrade.circuitbreaker |
| Modifier and Type | Field and Description |
|---|---|
protected AtomicReference<CircuitBreaker.State> |
AbstractCircuitBreaker.currentState |
| Modifier and Type | Method and Description |
|---|---|
CircuitBreaker.State |
AbstractCircuitBreaker.currentState() |
CircuitBreaker.State |
CircuitBreaker.currentState()
Get current state of the circuit breaker.
|
static CircuitBreaker.State |
CircuitBreaker.State.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CircuitBreaker.State[] |
CircuitBreaker.State.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CircuitBreakerStateChangeObserver.onStateChange(CircuitBreaker.State prevState,
CircuitBreaker.State newState,
DegradeRule rule,
Double snapshotValue)
Observer method triggered when circuit breaker state changed.
|
Copyright © 2021 Alibaba Group. All rights reserved.