C# 클래스 Hudl.Mjolnir.Breaker.FailurePercentageCircuitBreaker

Trips when the error percentage rises above a configured threshold percentage. This breaker is modeled after Hystrix's HystrixCircuitBreakerImpl. However, the metrics implementations that drive the breaker are fairly different.
상속: ICircuitBreaker
파일 보기 프로젝트 열기: hudl/Mjolnir 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AllowSingleTest bool
CheckAndSetTripped bool
FailurePercentageCircuitBreaker System
FailurePercentageCircuitBreaker System
IsPastWaitDuration bool

공개 메소드들

메소드 설명
IsAllowing ( ) : bool

MarkSuccess ( long elapsedMillis ) : void

Indicates that a recently-completed operation was successful. If the breaker is tripped and MarkSuccess() is called, the breaker will be fixed. The operation's elapsed duration (in milliseconds) is used to ensure the operation being checked began before the breaker was initially tripped.

비공개 메소드들

메소드 설명
AllowSingleTest ( ) : bool

CheckAndSetTripped ( ) : bool

Checks to see if the breaker should trip, and trips if it should.

FailurePercentageCircuitBreaker ( Hudl.Mjolnir.Key.GroupKey key, IClock clock, ICommandMetrics metrics, IStats stats, IMetricEvents metricEvents, FailurePercentageCircuitBreakerProperties properties, IConfigurableValue gaugeIntervalMillisOverride = null ) : System
FailurePercentageCircuitBreaker ( Hudl.Mjolnir.Key.GroupKey key, ICommandMetrics metrics, IStats stats, IMetricEvents metricEvents, FailurePercentageCircuitBreakerProperties properties ) : System
IsPastWaitDuration ( ) : bool

메소드 상세

IsAllowing() 공개 메소드

public IsAllowing ( ) : bool
리턴 bool

MarkSuccess() 공개 메소드

Indicates that a recently-completed operation was successful. If the breaker is tripped and MarkSuccess() is called, the breaker will be fixed. The operation's elapsed duration (in milliseconds) is used to ensure the operation being checked began before the breaker was initially tripped.
public MarkSuccess ( long elapsedMillis ) : void
elapsedMillis long
리턴 void