SimpleQueueWorkerT Class |
Namespace: CMS.Base
public abstract class SimpleQueueWorker<T> : ThreadQueueWorker<SimpleQueueItem, T> where T : new(), SimpleQueueWorker<T>
The SimpleQueueWorkerT type exposes the following members.
Name | Description | |
---|---|---|
SimpleQueueWorkerT |
Name | Description | |
---|---|---|
Events |
Events fired by the worker
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
SyncRoot |
Lock this object when doing actions that might change the result of condition run while stopping execution
(Inherited from ThreadWorkerT.) |
Name | Description | |
---|---|---|
DefaultInterval |
Default interval of processing cycle.
(Overrides ThreadWorkerTDefaultInterval.) | |
CheckDuplicity |
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.) | |
ItemsInQueue |
Return the current number of items in the queue
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
MaintenanceInterval |
Maintenance interval for turning off the thread.
(Overrides ThreadWorkerTMaintenanceInterval.) | |
PollThread |
Gets or sets thread which is periodically checking for new tasks.
(Inherited from ThreadWorkerT.) | |
ProcessingPaused |
Indicates whether worker routine is temporarily paused.
(Inherited from ThreadWorkerT.) | |
UseLogContext |
If true, the thread uses a log context for its operations
(Inherited from ThreadWorkerT.) |
Name | Description | |
---|---|---|
CreateThreadSettings | (Inherited from ThreadWorkerT.) | |
Dispose |
Disposes instance of thread worker.
(Inherited from ThreadWorkerT.) | |
Dispose(Boolean) |
Disposes instance of thread worker.
(Inherited from ThreadWorkerT.) | |
DoMaintenance |
Turns off thread in case of inactivity.
(Overrides ThreadWorkerTDoMaintenance.) | |
Enqueue(Action) |
Enqueue action with random unique key.
| |
Enqueue(String, Action) |
Enqueue action with given key.
| |
Enqueue(TItem, Boolean) |
Adds new item to processing queue.
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
EnsureRunningThread |
Ensures a running thread for this processor
(Inherited from ThreadWorkerT.) | |
Finish |
Finishes the worker process.
(Overrides ThreadWorkerTFinish.) | |
Initialize |
Initialize item counter event.
(Overrides ThreadWorkerTInitialize.) | |
IsThreadRunning |
Returns true if the worker thread is currently running
(Inherited from ThreadWorkerT.) | |
Process |
Method processing queued actions.
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
ProcessItem |
Processing of single action.
(Overrides ThreadQueueWorkerTItem, TWorkerProcessItem(TItem).) | |
ProcessItems |
Processes the given list of items. Override this method to process queued items as a bulk. Returns the number of processed items.
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
RunProcess |
Runs the internal process of the worker
(Inherited from ThreadWorkerT.) | |
StopExecution |
Stops the worker after finishing its job.
(Inherited from ThreadWorkerT.) |