Click or drag to resize
SynchronizationQueueWorker Class
Queue worker for processing of synchronization tasks
Inheritance Hierarchy
SystemObject
  CMS.BaseThreadWorkerSynchronizationQueueWorker
    CMS.BaseThreadQueueWorkerSimpleQueueItem, SynchronizationQueueWorker
      CMS.BaseSimpleQueueWorkerSynchronizationQueueWorker
        CMS.SynchronizationSynchronizationQueueWorker

Namespace: CMS.Synchronization
Assembly: CMS.Synchronization (in CMS.Synchronization.dll) Version: 13.0.131
Syntax
C#
public class SynchronizationQueueWorker : SimpleQueueWorker<SynchronizationQueueWorker>

The SynchronizationQueueWorker type exposes the following members.

Constructors
  NameDescription
Public methodSynchronizationQueueWorker
Top
Fields
Properties
  NameDescription
Protected propertyCheckDuplicity
If true, the queue checks the duplicity when inserting items. The duplicity is checked using the default comparer of the item.
(Inherited from ThreadQueueWorkerTItem, TWorker.)
Protected propertyDefaultInterval
Default interval of processing cycle.
(Inherited from SimpleQueueWorkerT.)
Public propertyItemsInQueue
Return the current number of items in the queue
(Inherited from ThreadQueueWorkerTItem, TWorker.)
Protected propertyMaintenanceInterval
Maintenance interval for turning off the thread.
(Inherited from SimpleQueueWorkerT.)
Protected propertyPollThread
Gets or sets thread which is periodically checking for new tasks.
(Inherited from ThreadWorkerT.)
Public propertyProcessingPaused
Indicates whether worker routine is temporarily paused.
(Inherited from ThreadWorkerT.)
Protected propertyStopRequestToken
The CancellationToken to be checked if the thread should stop execution.
(Inherited from ThreadWorkerT.)
Protected propertyUseLogContext
If true, the thread uses a log context for its operations
(Inherited from ThreadWorkerT.)
Top
Methods
  NameDescription
Protected methodCreateThreadSettings
Creates ThreadSettings object and enables the IsBackground and UseEmptyContext properties.
(Inherited from ThreadWorkerT.)
Public methodDispose
Disposes instance of thread worker.
(Inherited from ThreadWorkerT.)
Protected methodDispose(Boolean)
Disposes instance of thread worker.
(Inherited from ThreadWorkerT.)
Protected methodDoMaintenance
Turns off thread in case of inactivity.
(Inherited from SimpleQueueWorkerT.)
Public methodEnqueue(Action)
Enqueue action with random unique key.
(Inherited from SimpleQueueWorkerT.)
Public methodEnqueue(String, Action)
Enqueue action with given key.
(Inherited from SimpleQueueWorkerT.)
Public methodEnqueue(TItem, Boolean)
Adds new item to processing queue.
(Inherited from ThreadQueueWorkerTItem, TWorker.)
Public methodEnsureRunningThread
Ensures a running thread for this processor
(Inherited from ThreadWorkerT.)
Protected methodFinish
Finishes the worker process.
(Inherited from SimpleQueueWorkerT.)
Protected methodInitialize
Initialize item counter event.
(Inherited from SimpleQueueWorkerT.)
Public methodIsThreadRunning
Returns true if the worker thread is currently running
(Inherited from ThreadWorkerT.)
Protected methodProcess
Method processing queued actions.
(Inherited from ThreadQueueWorkerTItem, TWorker.)
Protected methodProcessItem
Processing of single action.
(Inherited from SimpleQueueWorkerT.)
Protected methodProcessItems
Processes the given list of items. Override this method to process queued items as a bulk. Returns the number of processed items.
(Overrides ThreadQueueWorkerTItem, TWorkerProcessItems(IEnumerableTItem).)
Protected methodRunProcess
Runs the internal process of the worker
(Inherited from ThreadWorkerT.)
Protected methodStopExecution
Stops the worker after finishing its job.
(Inherited from ThreadWorkerT.)
Top
See Also