Table of Contents

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

BlockingCollection<Task>

Properties

CurrentQueueSize

public override int CurrentQueueSize { get; }

Property Value

int

IsQueueSpaceAvailable

public override bool IsQueueSpaceAvailable { get; }

Property Value

bool

Methods

GetScheduledTasks()

protected override IEnumerable<Task> GetScheduledTasks()

Returns

IEnumerable<Task>

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)

Parameters

task Task
prevQueued bool

Returns

bool