Click or drag to resize
CMSWorkerQueue Class
Queue of the workers.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericQueueAbstractWorker
    CMS.BaseCMSWorkerQueue

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 9.0.0
Syntax
C#
public class CMSWorkerQueue : Queue<AbstractWorker>, 
	INotCopyThreadItem

The CMSWorkerQueue type exposes the following members.

Constructors
  NameDescription
Public methodCMSWorkerQueue
Top
Fields
  NameDescription
Protected fieldmDuplicities
Table of existing duplicity keys for current queue.
Protected fieldmRunningCount
Number of running threads
Protected fieldmTotalRunningCount
Number of running threads from all queues
Top
Properties
  NameDescription
Protected propertyClosed
If true, the queue is already closed.
Protected propertyDuplicities
Table of existing duplicity keys for current queue.
Public propertyStatic memberInstance
Gets or sets current worker queue.
Public propertyParameters
Gets or sets parameters of the queue, parameters are indexed by their name.
Public propertyRunInSeparateThread
If true, the worker queue set to run workers synchronously runs in a single separate thread.
Public propertyRunningCount
Number of currently running workers.
Public propertyRunWorkersSynchronously
If true, the worker queue executes the workers one by one synchronously
Public propertyTotalRunningCount
Number of currently running workers from all queues.
Top
Methods
  NameDescription
Protected methodAddWorker
Adds the given worker to the queue.
Protected methodCheckWait
Returns true if the queue processing should wait
Public methodStatic memberQueueWorker(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.
Public methodStatic memberQueueWorker(Action, String)
Adds given action to the CMSWorkerQueue as an ActionWorker.
Public methodRunAll
Runs all the workers.
Public methodStatic memberRunCurrentQueuedWorkers
Runs the workers queued in current request.
Protected methodRunThreadsWaiting
Runs the threads waiting for the execution of the next allowed threads
Protected methodRunWorkers
Runs the threads in current instance
Protected methodworker_OnStop
Handles worker's OnStop event.
Top
See Also