The interface to be implemented by classes that want to provide a thread
pool for the IScheduler's use.
Namespace: Quartz.Spi
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public interface IThreadPool
The IThreadPool type exposes the following members.
Properties
Name | Description | |
---|---|---|
InstanceId |
Inform the IThreadPool of the Scheduler instance's Id,
prior to initialize being invoked.
| |
InstanceName |
Inform the IThreadPool of the Scheduler instance's name,
prior to initialize being invoked.
| |
PoolSize |
Get the current number of threads in the IThreadPool.
|
Methods
Name | Description | |
---|---|---|
BlockForAvailableThreads |
Determines the number of threads that are currently available in
the pool. Useful for determining the number of times
RunInThread(FuncTask) can be called before returning
false.
| |
Initialize |
Must be called before the thread pool is
used, in order to give the it a chance to Initialize.
| |
RunInThread | ||
Shutdown |
Called by the QuartzScheduler to inform the thread pool
that it should free up all of it's resources because the scheduler is
shutting down.
|
Remarks
See Also