C# 클래스 Hudl.Mjolnir.Command.CommandContextImpl

Manages all of Mjolnir's bulkheads, breakers, and other state. Also handles dependency injection for replaceable components (stats, config, etc.). Client code typically doesn't interact with CommandContext other than to inject dependencies.
상속: ICommandContext
파일 보기 프로젝트 열기: hudl/Mjolnir 1 사용 예제들

공개 메소드들

메소드 설명
GetBulkhead ( Hudl.Mjolnir.Key.GroupKey key ) : IBulkheadSemaphore

Callers should keep a local reference to the bulkhead object they receive from this method, ensuring that they call TryEnter and Release on the same object reference. Phrased differently: don't re-retrieve the bulkhead before calling Release().

GetCircuitBreaker ( Hudl.Mjolnir.Key.GroupKey key ) : ICircuitBreaker
GetFallbackSemaphore ( Hudl.Mjolnir.Key.GroupKey key ) : IIsolationSemaphore
GetThreadPool ( Hudl.Mjolnir.Key.GroupKey key ) : IIsolationThreadPool
IgnoreExceptions ( HashSet types ) : void
IsExceptionIgnored ( Type type ) : bool

비공개 메소드들

메소드 설명
GetCommandMetrics ( Hudl.Mjolnir.Key.GroupKey key ) : ICommandMetrics

메소드 상세

GetBulkhead() 공개 메소드

Callers should keep a local reference to the bulkhead object they receive from this method, ensuring that they call TryEnter and Release on the same object reference. Phrased differently: don't re-retrieve the bulkhead before calling Release().
public GetBulkhead ( Hudl.Mjolnir.Key.GroupKey key ) : IBulkheadSemaphore
key Hudl.Mjolnir.Key.GroupKey
리턴 IBulkheadSemaphore

GetCircuitBreaker() 공개 메소드

public GetCircuitBreaker ( Hudl.Mjolnir.Key.GroupKey key ) : ICircuitBreaker
key Hudl.Mjolnir.Key.GroupKey
리턴 ICircuitBreaker

GetFallbackSemaphore() 공개 메소드

public GetFallbackSemaphore ( Hudl.Mjolnir.Key.GroupKey key ) : IIsolationSemaphore
key Hudl.Mjolnir.Key.GroupKey
리턴 IIsolationSemaphore

GetThreadPool() 공개 메소드

public GetThreadPool ( Hudl.Mjolnir.Key.GroupKey key ) : IIsolationThreadPool
key Hudl.Mjolnir.Key.GroupKey
리턴 IIsolationThreadPool

IgnoreExceptions() 공개 메소드

public IgnoreExceptions ( HashSet types ) : void
types HashSet
리턴 void

IsExceptionIgnored() 공개 메소드

public IsExceptionIgnored ( Type type ) : bool
type Type
리턴 bool