Class HystrixTaskScheduler
- Namespace
- Steeltoe.CircuitBreaker.Hystrix.Strategy.Concurrency
- Assembly
- Steeltoe.CircuitBreaker.HystrixBase.dll
public abstract class HystrixTaskScheduler : TaskScheduler, IHystrixTaskScheduler, IDisposable
- Inheritance
-
HystrixTaskScheduler
- Implements
- Derived
- Inherited Members
Constructors
HystrixTaskScheduler(IHystrixThreadPoolOptions)
public HystrixTaskScheduler(IHystrixThreadPoolOptions options)
Parameters
optionsIHystrixThreadPoolOptions
Fields
allowMaxToDivergeFromCore
protected bool allowMaxToDivergeFromCore
Field Value
completedTasks
protected int completedTasks
Field Value
corePoolSize
protected int corePoolSize
Field Value
keepAliveTime
protected TimeSpan keepAliveTime
Field Value
maximumPoolSize
protected int maximumPoolSize
Field Value
queueSize
protected int queueSize
Field Value
queueSizeRejectionThreshold
protected int queueSizeRejectionThreshold
Field Value
runningTasks
protected int runningTasks
Field Value
runningThreads
protected int runningThreads
Field Value
shutdown
protected bool shutdown
Field Value
Properties
CorePoolSize
public virtual int CorePoolSize { get; set; }
Property Value
CurrentActiveCount
public virtual int CurrentActiveCount { get; }
Property Value
CurrentCompletedTaskCount
public virtual int CurrentCompletedTaskCount { get; }
Property Value
CurrentCorePoolSize
public virtual int CurrentCorePoolSize { get; }
Property Value
CurrentLargestPoolSize
public virtual int CurrentLargestPoolSize { get; }
Property Value
CurrentMaximumPoolSize
public virtual int CurrentMaximumPoolSize { get; }
Property Value
CurrentPoolSize
public virtual int CurrentPoolSize { get; }
Property Value
CurrentQueueSize
public virtual int CurrentQueueSize { get; }
Property Value
CurrentTaskCount
public virtual int CurrentTaskCount { get; }
Property Value
IsQueueSpaceAvailable
public virtual bool IsQueueSpaceAvailable { get; }
Property Value
IsShutdown
public bool IsShutdown { get; }
Property Value
KeepAliveTime
public virtual TimeSpan KeepAliveTime { get; set; }
Property Value
MaximumConcurrencyLevel
Indicates the maximum concurrency level this TaskScheduler is able to support.
public override int MaximumConcurrencyLevel { get; }
Property Value
- int
Returns an integer that represents the maximum concurrency level. The default scheduler returns Int32.MaxValue.
MaximumPoolSize
public virtual int MaximumPoolSize { get; set; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
RunContinuation(Task)
protected void RunContinuation(Task task)
Parameters
taskTask