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

An operation that needs isolation during failure. When passed to an Invoke method on the CommandInvoker, the operation implemented in the Execute method receives protection via timeouts, circuit breakers, and bulkheads. For a detailed overview, see https://github.com/hudl/Mjolnir/wiki.
상속: Command
파일 보기 프로젝트 열기: hudl/Mjolnir

Private Properties

프로퍼티 타입 설명
BaseCommand Hudl.Config
CacheProvidedName string
DetermineTimeout System.TimeSpan
GenerateAndCacheName string
GetTimeoutConfigurableValue IConfigurableValue

보호된 메소드들

메소드 설명
BaseCommand ( string group, string breakerKey, string bulkheadKey, System.TimeSpan defaultTimeout ) : Hudl.Config

Constructs the command. The group is used as part of the command's Name. If the group contains dots, they'll be converted to dashes. Command timeouts can be configured at runtime. Configuration keys follow the form: mjolnir.command.[Command.Name].Timeout). If not configured, the provided defaultTimeout will be used. If no defaultTimeout is provided, a Mjolnir-wide timeout of 2 seconds will be applied.

비공개 메소드들

메소드 설명
BaseCommand ( string group, string name, string breakerKey, string bulkheadKey, System.TimeSpan defaultTimeout = null ) : Hudl.Config
CacheProvidedName ( Hudl.Mjolnir.Key.GroupKey group, string name ) : string
DetermineTimeout ( long invocationTimeoutMillis = null ) : System.TimeSpan
GenerateAndCacheName ( Hudl.Mjolnir.Key.GroupKey group ) : string
GetTimeoutConfigurableValue ( string commandName ) : IConfigurableValue

메소드 상세

BaseCommand() 보호된 메소드

Constructs the command. The group is used as part of the command's Name. If the group contains dots, they'll be converted to dashes. Command timeouts can be configured at runtime. Configuration keys follow the form: mjolnir.command.[Command.Name].Timeout). If not configured, the provided defaultTimeout will be used. If no defaultTimeout is provided, a Mjolnir-wide timeout of 2 seconds will be applied.
protected BaseCommand ( string group, string breakerKey, string bulkheadKey, System.TimeSpan defaultTimeout ) : Hudl.Config
group string Logical grouping for the command, usually the owning team. Avoid using dots.
breakerKey string Breaker to use for this command.
bulkheadKey string Bulkhead to use for this command.
defaultTimeout System.TimeSpan Timeout to enforce if not otherwise provided.
리턴 Hudl.Config