An implementation of the TaskSchedulingThreadPool which uses a custom task scheduler
with a dedicated pool of threads reserved only for its own scheduling purposes
Inheritance Hierarchy
Quartz.SimplTaskSchedulingThreadPool
Quartz.SimplDedicatedThreadPool
Namespace: Quartz.Simpl
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public class DedicatedThreadPool : TaskSchedulingThreadPool
The DedicatedThreadPool type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DedicatedThreadPool | Initializes a new instance of the DedicatedThreadPool class |
Properties
Name | Description | |
---|---|---|
InstanceId | (Inherited from TaskSchedulingThreadPool.) | |
InstanceName | (Inherited from TaskSchedulingThreadPool.) | |
MaxConcurency |
The maxmimum number of thread pool tasks which can be executing in parallel
(Inherited from TaskSchedulingThreadPool.) | |
PoolSize |
The number of tasks that can run concurrently in this thread pool
(Inherited from TaskSchedulingThreadPool.) | |
Scheduler |
The TaskScheduler used to schedule tasks queued by users
(Inherited from TaskSchedulingThreadPool.) | |
ThreadCount |
The maxmimum number of thread pool tasks which can be executing in parallel
(Inherited from TaskSchedulingThreadPool.) | |
ThreadPriority | (Inherited from TaskSchedulingThreadPool.) |
Methods
Name | Description | |
---|---|---|
BlockForAvailableThreads |
Determines the number of threads that are currently available in
the pool; blocks until at least one is avaialble
(Inherited from TaskSchedulingThreadPool.) | |
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 |
Returns a QueuedTaskScheduler
(Overrides TaskSchedulingThreadPoolGetDefaultScheduler.) | |
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
(Inherited from TaskSchedulingThreadPool.) | |
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
(Inherited from TaskSchedulingThreadPool.) | |
Shutdown |
Stops processing new tasks and optionally waits for currently running tasks to finish
(Inherited from TaskSchedulingThreadPool.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also