CMSWorkerQueue Class |
Namespace: CMS.Base
public class CMSWorkerQueue : Queue<AbstractWorker>, INotCopyThreadItem
The CMSWorkerQueue type exposes the following members.
Name | Description | |
---|---|---|
CMSWorkerQueue |
Name | Description | |
---|---|---|
mDuplicities |
Table of existing duplicity keys for current queue.
| |
mRunningCount |
Number of running threads
| |
mTotalRunningCount |
Number of running threads from all queues
|
Name | Description | |
---|---|---|
Closed |
If true, the queue is already closed.
| |
Duplicities |
Table of existing duplicity keys for current queue.
| |
Instance |
Gets or sets current worker queue.
| |
Parameters |
Gets or sets parameters of the queue, parameters are indexed by their name.
| |
RunInSeparateThread |
If true, the worker queue set to run workers synchronously runs in a single separate thread.
| |
RunningCount |
Number of currently running workers.
| |
RunWorkersSynchronously |
If true, the worker queue executes the workers one by one synchronously
| |
TotalRunningCount |
Number of currently running workers from all queues.
|
Name | Description | |
---|---|---|
AddWorker |
Adds the given worker to the queue.
| |
CheckWait |
Returns true if the queue processing should wait
| |
QueueWorker(AbstractWorker) |
Adds the given worker to the queue for current request. The workers get executed upon the end of current request or thread or explicit call to RunQueuedWorkers.
| |
QueueWorker(Action, String) |
Adds given action to the CMSWorkerQueue as an ActionWorker.
| |
RunAll |
Runs all the workers.
| |
RunCurrentQueuedWorkers |
Runs the workers queued in current request.
| |
RunThreadsWaiting |
Runs the threads waiting for the execution of the next allowed threads
| |
RunWorkers |
Runs the threads in current instance
| |
worker_OnStop |
Handles worker's OnStop event.
|