public class NoopCircuitBreaker extends Object implements CircuitBreaker
CircuitBreaker.TypeFIELDDATA, PARENT, REQUEST| コンストラクタと説明 |
|---|
NoopCircuitBreaker(String name) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
double |
addEstimateBytesAndMaybeBreak(long bytes,
String label)
add bytes to the breaker and maybe trip
|
long |
addWithoutBreaking(long bytes)
Adjust the circuit breaker without tripping
|
void |
circuitBreak(String fieldName,
long bytesNeeded)
Trip the circuit breaker
|
long |
getLimit() |
String |
getName() |
double |
getOverhead() |
long |
getTrippedCount() |
long |
getUsed() |
public NoopCircuitBreaker(String name)
public void circuitBreak(String fieldName, long bytesNeeded)
CircuitBreakercircuitBreak インタフェース内 CircuitBreakerfieldName - name of the field responsible for tripping the breakerbytesNeeded - bytes asked for but unable to be allocatedpublic double addEstimateBytesAndMaybeBreak(long bytes,
String label)
throws CircuitBreakingException
CircuitBreakeraddEstimateBytesAndMaybeBreak インタフェース内 CircuitBreakerbytes - number of bytes to addlabel - string label describing the bytes being addedCircuitBreakingExceptionpublic long addWithoutBreaking(long bytes)
CircuitBreakeraddWithoutBreaking インタフェース内 CircuitBreakerpublic long getUsed()
getUsed インタフェース内 CircuitBreakerpublic long getLimit()
getLimit インタフェース内 CircuitBreakerpublic double getOverhead()
getOverhead インタフェース内 CircuitBreakerpublic long getTrippedCount()
getTrippedCount インタフェース内 CircuitBreakerpublic String getName()
getName インタフェース内 CircuitBreakerCopyright © 2009–2016. All rights reserved.