The CMSWorkerQueue type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
CMSWorkerQueue |
Methods
Name | Description | |
---|---|---|
AddWorker |
Adds the given worker to the queue.
| |
Clear | Removes all objects from the Queue T . (Inherited from Queue AbstractWorker .) | |
Contains | Determines whether an element is in the Queue T . (Inherited from Queue AbstractWorker .) | |
CopyTo | Copies the Queue T elements to an existing one-dimensional Array, starting at the specified array index. (Inherited from Queue AbstractWorker .) | |
Dequeue | Removes and returns the object at the beginning of the Queue T . (Inherited from Queue AbstractWorker .) | |
Enqueue | Adds an object to the end of the Queue T . (Inherited from Queue AbstractWorker .) | |
Equals | (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.) | |
GetEnumerator | Returns an enumerator that iterates through the Queue T . (Inherited from Queue AbstractWorker .) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
CheckWait |
Returns true if the queue processing should wait
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Peek | Returns the object at the beginning of the Queue T without removing it. (Inherited from Queue AbstractWorker .) | |
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
| |
ToArray | Copies the Queue T elements to a new array. (Inherited from Queue AbstractWorker .) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TrimExcess | Sets the capacity to the actual number of elements in the Queue T , if that number is less than 90 percent of current capacity. (Inherited from Queue AbstractWorker .) | |
worker_OnStop |
Handles worker's OnStop event.
|
Extension Methods
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.) |
Fields
Name | Description | |
---|---|---|
mDuplicities |
Table of existing duplicity keys for current queue.
| |
mRunningCount |
Number of running threads
| |
mTotalRunningCount |
Number of running threads from all queues
|
Properties
Name | Description | |
---|---|---|
Closed |
If true, the queue is already closed.
| |
Count | Gets the number of elements contained in the Queue T . (Inherited from Queue AbstractWorker .) | |
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.
|
See Also