public interface StateStore
Breaker can use.
While a default instance of Breaker will use a simple object local to the current JVM, alternative instances of `StateStore`
could be created to maintain state somewhere else, e.g.:
* A persistent store on disk. This could be helpful to maintain breaker state between runs of the JVM.
* A distributed store, such as a cache shared across a cluster of machines. This could be helpful if breaker state
needs to be shared by many machines.| Modifier and Type | Method and Description |
|---|---|
long |
getLastFailure() |
State |
getState() |
void |
setLastFailure(long lastFailure) |
void |
setState(@NotNull State state) |
Copyright © 2019. All rights reserved.