C# Class 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.
Inheritance: ICommandContext
Afficher le fichier Open project: hudl/Mjolnir Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetCommandMetrics ( Hudl.Mjolnir.Key.GroupKey key ) : ICommandMetrics

Method Details

GetBulkhead() public méthode

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
Résultat IBulkheadSemaphore

GetCircuitBreaker() public méthode

public GetCircuitBreaker ( Hudl.Mjolnir.Key.GroupKey key ) : ICircuitBreaker
key Hudl.Mjolnir.Key.GroupKey
Résultat ICircuitBreaker

GetFallbackSemaphore() public méthode

public GetFallbackSemaphore ( Hudl.Mjolnir.Key.GroupKey key ) : IIsolationSemaphore
key Hudl.Mjolnir.Key.GroupKey
Résultat IIsolationSemaphore

GetThreadPool() public méthode

public GetThreadPool ( Hudl.Mjolnir.Key.GroupKey key ) : IIsolationThreadPool
key Hudl.Mjolnir.Key.GroupKey
Résultat IIsolationThreadPool

IgnoreExceptions() public méthode

public IgnoreExceptions ( HashSet types ) : void
types HashSet
Résultat void

IsExceptionIgnored() public méthode

public IsExceptionIgnored ( Type type ) : bool
type Type
Résultat bool