| CMSWorkerQueue Class |
Namespace: CMS.Base
public class CMSWorkerQueue : Queue<AbstractWorker>, INotCopyThreadItem
The CMSWorkerQueue type exposes the following members.
| Name | Description | |
|---|---|---|
| CMSWorkerQueue |
| 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.
| |
| RunGlobalQueuedWorkers |
Runs the global queued workers
| |
| 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.
|
| Name | Description | |
|---|---|---|
| AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
| GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
| 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.
| |
| Global |
Gets the global worker 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.
|