Class HystrixQueuedTaskScheduler
Inheritance
System.Object
HystrixQueuedTaskScheduler
Assembly: Steeltoe.CircuitBreaker.HystrixBase.dll
Syntax
public class HystrixQueuedTaskScheduler : HystrixTaskScheduler, IHystrixTaskScheduler
Constructors
|
Edit this page
View Source
HystrixQueuedTaskScheduler(IHystrixThreadPoolOptions)
Declaration
public HystrixQueuedTaskScheduler(IHystrixThreadPoolOptions options)
Parameters
Fields
|
Edit this page
View Source
workQueue
Declaration
protected BlockingCollection<Task> workQueue
Field Value
Type |
Description |
BlockingCollection<Task> |
|
Properties
|
Edit this page
View Source
CurrentQueueSize
Declaration
public override int CurrentQueueSize { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
|
Edit this page
View Source
IsQueueSpaceAvailable
Declaration
public override bool IsQueueSpaceAvailable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Methods
|
Edit this page
View Source
GetScheduledTasks()
Declaration
protected override IEnumerable<Task> GetScheduledTasks()
Returns
Type |
Description |
IEnumerable<Task> |
|
|
Edit this page
View Source
QueueTask(Task)
Declaration
protected override void QueueTask(Task task)
Parameters
Type |
Name |
Description |
Task |
task |
|
|
Edit this page
View Source
StartThreadPoolWorker()
Declaration
protected void StartThreadPoolWorker()
|
Edit this page
View Source
TryExecuteTaskInline(Task, Boolean)
Declaration
protected override bool TryExecuteTaskInline(Task task, bool prevQueued)
Parameters
Type |
Name |
Description |
Task |
task |
|
System.Boolean |
prevQueued |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
IDisposable