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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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