Class HystrixCommand
Inheritance
System.Object
HystrixCommand
Assembly: Steeltoe.CircuitBreaker.HystrixBase.dll
Syntax
public class HystrixCommand : HystrixCommand<Unit>, IHystrixInvokableInfo, IHystrixExecutable<Unit>, IHystrixObservable<Unit>, IHystrixExecutable, IHystrixObservable, IHystrixInvokable
Constructors
|
Edit this page
View Source
HystrixCommand(IHystrixCommandGroupKey, Action, Action, ILogger)
Declaration
public HystrixCommand(IHystrixCommandGroupKey group, Action run = null, Action fallback = null, ILogger logger = null)
Parameters
|
Edit this page
View Source
HystrixCommand(IHystrixCommandGroupKey, IHystrixCommandKey, IHystrixThreadPoolKey, IHystrixCircuitBreaker, IHystrixThreadPool, IHystrixCommandOptions, IHystrixThreadPoolOptions, HystrixCommandMetrics, SemaphoreSlim, SemaphoreSlim, HystrixOptionsStrategy, HystrixCommandExecutionHook, Action, Action, ILogger)
Declaration
public HystrixCommand(IHystrixCommandGroupKey group, IHystrixCommandKey key, IHystrixThreadPoolKey threadPoolKey, IHystrixCircuitBreaker circuitBreaker, IHystrixThreadPool threadPool, IHystrixCommandOptions commandOptionsDefaults, IHystrixThreadPoolOptions threadPoolOptionsDefaults, HystrixCommandMetrics metrics, SemaphoreSlim fallbackSemaphore, SemaphoreSlim executionSemaphore, HystrixOptionsStrategy optionsStrategy, HystrixCommandExecutionHook executionHook, Action run, Action fallback, ILogger logger = null)
Parameters
|
Edit this page
View Source
HystrixCommand(IHystrixCommandGroupKey, IHystrixThreadPoolKey, Action, Action, ILogger)
Declaration
public HystrixCommand(IHystrixCommandGroupKey group, IHystrixThreadPoolKey threadPool, Action run = null, Action fallback = null, ILogger logger = null)
Parameters
|
Edit this page
View Source
HystrixCommand(IHystrixCommandGroupKey, IHystrixThreadPoolKey, Int32, Action, Action, ILogger)
Declaration
public HystrixCommand(IHystrixCommandGroupKey group, IHystrixThreadPoolKey threadPool, int executionIsolationThreadTimeoutInMilliseconds, Action run = null, Action fallback = null, ILogger logger = null)
Parameters
|
Edit this page
View Source
HystrixCommand(IHystrixCommandGroupKey, Int32, Action, Action, ILogger)
Declaration
public HystrixCommand(IHystrixCommandGroupKey group, int executionIsolationThreadTimeoutInMilliseconds, Action run = null, Action fallback = null, ILogger logger = null)
Parameters
Type |
Name |
Description |
IHystrixCommandGroupKey |
group |
|
System.Int32 |
executionIsolationThreadTimeoutInMilliseconds |
|
Action |
run |
|
Action |
fallback |
|
ILogger |
logger |
|
|
Edit this page
View Source
HystrixCommand(IHystrixCommandOptions, Action, Action, ILogger)
Declaration
public HystrixCommand(IHystrixCommandOptions commandOptions, Action run = null, Action fallback = null, ILogger logger = null)
Parameters
Fields
|
Edit this page
View Source
_fallback
Declaration
protected readonly Action _fallback
Field Value
|
Edit this page
View Source
_run
Declaration
protected readonly Action _run
Field Value
Methods
|
Edit this page
View Source
DoFallback()
Declaration
protected override Unit DoFallback()
Returns
Overrides
Steeltoe.CircuitBreaker.Hystrix.HystrixCommand<Unit>.DoFallback()
|
Edit this page
View Source
DoRun()
Declaration
protected override Unit DoRun()
Returns
Overrides
Steeltoe.CircuitBreaker.Hystrix.HystrixCommand<Unit>.DoRun()
|
Edit this page
View Source
Execute()
Declaration
|
Edit this page
View Source
ExecuteAsync()
Declaration
public Task ExecuteAsync()
Returns
|
Edit this page
View Source
ExecuteAsync(CancellationToken)
Declaration
public Task ExecuteAsync(CancellationToken token)
Parameters
Type |
Name |
Description |
CancellationToken |
token |
|
Returns
|
Edit this page
View Source
Run()
Declaration
protected virtual void Run()
|
Edit this page
View Source
RunFallback()
Declaration
protected virtual void RunFallback()
Implements