Class HystrixQueuedTaskScheduler
- Namespace
- Steeltoe.CircuitBreaker.Hystrix.Strategy.Concurrency
- Assembly
- Steeltoe.CircuitBreaker.HystrixBase.dll
public class HystrixQueuedTaskScheduler : HystrixTaskScheduler, IHystrixTaskScheduler, IDisposable
- Inheritance
-
HystrixQueuedTaskScheduler
- Implements
- Inherited Members
Constructors
HystrixQueuedTaskScheduler(IHystrixThreadPoolOptions)
public HystrixQueuedTaskScheduler(IHystrixThreadPoolOptions options)
Parameters
options
IHystrixThreadPoolOptions
Fields
workQueue
protected BlockingCollection<Task> workQueue
Field Value
Properties
CurrentQueueSize
public override int CurrentQueueSize { get; }
Property Value
IsQueueSpaceAvailable
public override bool IsQueueSpaceAvailable { get; }
Property Value
Methods
GetScheduledTasks()
protected override IEnumerable<Task> GetScheduledTasks()
Returns
QueueTask(Task)
protected override void QueueTask(Task task)
Parameters
task
Task
StartThreadPoolWorker()
protected void StartThreadPoolWorker()
TryExecuteTaskInline(Task, bool)
protected override bool TryExecuteTaskInline(Task task, bool prevQueued)