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,
Predicate<Throwable> allowedThrowables) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener pcl) |
void |
addVetoableChangeListener(VetoableChangeListener vcl) |
Date |
getEnableOn() |
Throwable |
getLastThrowable() |
double |
getServiceLevel() |
CircuitBreaker.Status |
getStatus() |
int |
getThreshold() |
Date |
getTrippedOn() |
boolean |
isOn() |
void |
removePropertyChangeListener(PropertyChangeListener pcl) |
void |
removeVetoableChangeListener(VetoableChangeListener vcl) |
void |
success() |
void |
throwable(Throwable throwable) |
void |
trip() |
void |
turnOn() |
public CircuitBreaker(int threshold, long timeout, Predicate<Throwable> allowedThrowables)
public CircuitBreaker(int threshold, long timeout)
public CircuitBreaker()
public void trip()
public void turnOn() throws PropertyVetoException
PropertyVetoException
public int getThreshold()
public Throwable getLastThrowable()
public double getServiceLevel()
public CircuitBreaker.Status getStatus()
public Date getTrippedOn()
public Date getEnableOn()
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)
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.