CMSWorkerQueue MembersKentico 8.1 API Reference
The CMSWorkerQueue type exposes the following members.
Constructors

  NameDescription
Public methodCMSWorkerQueue
Back to Top
Methods

  NameDescription
Protected methodAddWorker
Adds the given worker to the queue.
Public methodOnlineClear (Inherited from OnlineQueue AbstractWorker .)
Public methodOnlineContains (Inherited from OnlineQueue AbstractWorker .)
Public methodOnlineCopyTo (Inherited from OnlineQueue AbstractWorker .)
Public methodOnlineDequeue (Inherited from OnlineQueue AbstractWorker .)
Public methodOnlineEnqueue (Inherited from OnlineQueue AbstractWorker .)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetEnumerator (Inherited from OnlineQueue AbstractWorker .)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodCheckWait
Returns true if the queue processing should wait
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodOnlinePeek (Inherited from OnlineQueue AbstractWorker .)
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.
Public methodStatic memberRunGlobalQueuedWorkers
Runs the global queued workers
Protected methodRunThreadsWaiting
Runs the threads waiting for the execution of the next allowed threads
Protected methodRunWorkers
Runs the threads in current instance
Public methodOnlineToArray (Inherited from OnlineQueue AbstractWorker .)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodOnlineTrimExcess
Sets the capacity to the actual number of elements in the OnlineQueue T , if that number is less than 90 percent of current capacity.
(Inherited from OnlineQueue AbstractWorker .)
Protected methodworker_OnStop
Handles worker's OnStop event.
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to 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
Back to Top
Properties

  NameDescription
Protected propertyClosed
If true, the queue is already closed.
Public propertyOnlineCount (Inherited from OnlineQueue AbstractWorker .)
Protected propertyDuplicities
Table of existing duplicity keys for current queue.
Public propertyStatic memberGlobal
Gets the global worker 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.
Back to Top
See Also