An IThreadPool implementation which schedules tasks using a TaskScheduler (provided by implementers)
Inheritance Hierarchy
Quartz.SimplTaskSchedulingThreadPool
Quartz.SimplDedicatedThreadPool
Quartz.SimplDefaultThreadPool
Namespace: Quartz.Simpl
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public abstract class TaskSchedulingThreadPool : IThreadPool
The TaskSchedulingThreadPool type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TaskSchedulingThreadPool | Initializes a new instance of the TaskSchedulingThreadPool class | |
TaskSchedulingThreadPool(Int32) | Initializes a new instance of the TaskSchedulingThreadPool class |
Properties
Name | Description | |
---|---|---|
InstanceId | ||
InstanceName | ||
MaxConcurency |
The maxmimum number of thread pool tasks which can be executing in parallel
| |
PoolSize |
The number of tasks that can run concurrently in this thread pool
| |
Scheduler |
The TaskScheduler used to schedule tasks queued by users
| |
ThreadCount |
The maxmimum number of thread pool tasks which can be executing in parallel
| |
ThreadPriority |
Methods
Name | Description | |
---|---|---|
BlockForAvailableThreads |
Determines the number of threads that are currently available in
the pool; blocks until at least one is avaialble
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetDefaultScheduler |
Implementers should override this to provide the TaskScheduler used
by their thread pool.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
Initializes the tread pool for use
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RunInThread |
Schedules a task to run (using the task scheduler) as soon as concurrency rules allow it
| |
Shutdown |
Stops processing new tasks and optionally waits for currently running tasks to finish
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
DefaultMaxConcurrency |
See Also