public class CircuitBreaker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CircuitBreaker.Status |
Constructor and Description |
---|
CircuitBreaker() |
CircuitBreaker(int threshold,
long timeout) |
CircuitBreaker(int threshold,
long timeout,
Specification<Throwable> allowedThrowables) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener pcl) |
void |
addVetoableChangeListener(VetoableChangeListener vcl) |
Date |
enabledOn() |
boolean |
isOn() |
Throwable |
lastThrowable() |
void |
removePropertyChangeListener(PropertyChangeListener pcl) |
void |
removeVetoableChangeListener(VetoableChangeListener vcl) |
double |
serviceLevel() |
CircuitBreaker.Status |
status() |
void |
success() |
int |
threshold() |
void |
throwable(Throwable throwable) |
void |
trip() |
Date |
trippedOn() |
void |
turnOn() |
public CircuitBreaker(int threshold, long timeout, Specification<Throwable> allowedThrowables)
public CircuitBreaker(int threshold, long timeout)
public CircuitBreaker()
public void trip()
public void turnOn() throws PropertyVetoException
PropertyVetoException
public int threshold()
public Throwable lastThrowable()
public double serviceLevel()
public CircuitBreaker.Status status()
public Date trippedOn()
public Date enabledOn()
public boolean isOn()
public void throwable(Throwable throwable)
public void success()
public void addVetoableChangeListener(VetoableChangeListener vcl)
public void removeVetoableChangeListener(VetoableChangeListener vcl)
public void addPropertyChangeListener(PropertyChangeListener pcl)
public void removePropertyChangeListener(PropertyChangeListener pcl)