| ThreadQueueWorkerTItem, TWorker Class |
Namespace: CMS.Base
public abstract class ThreadQueueWorker<TItem, TWorker> : ThreadWorker<TWorker> where TItem : class where TWorker : new(), ThreadQueueWorker<TItem, TWorker>
The ThreadQueueWorkerTItem, TWorker type exposes the following members.
| Name | Description | |
|---|---|---|
| ThreadQueueWorkerTItem, TWorker |
| Name | Description | |
|---|---|---|
| Events |
Events fired by the worker
| |
| SyncRoot |
Lock this object when doing actions that might change the result of condition run while stopping execution
(Inherited from ThreadWorkerT.) |
| Name | Description | |
|---|---|---|
| DefaultInterval |
Gets the default interval in milliseconds for the worker.
(Inherited from ThreadWorkerT.) | |
| CheckDuplicity |
If true, the queue checks the duplicity when inserting items. The duplicity is checked using the default comparer of the item.
| |
| ItemsInQueue |
Return the current number of items in the queue
| |
| MaintenanceInterval |
Gets the maintenance interval in milliseconds for the worker. When 0 (default), the maintenance is not performed.
(Inherited from ThreadWorkerT.) | |
| 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 |
Runs the maintenance routine for the worker
(Inherited from ThreadWorkerT.) | |
| Enqueue |
Adds new item to processing queue.
| |
| EnsureRunningThread |
Ensures a running thread for this processor
(Inherited from ThreadWorkerT.) | |
| Finish |
Finishes the worker process.
(Inherited from ThreadWorkerT.) | |
| Initialize |
Initializes the worker. Runs in the worker thread before the thread processes the first iteration.
(Inherited from ThreadWorkerT.) | |
| IsThreadRunning |
Returns true if the worker thread is currently running
(Inherited from ThreadWorkerT.) | |
| Process |
Method processing queued actions.
(Overrides ThreadWorkerTProcess.) | |
| ProcessItem |
Processes the item in the queue. Override this method to process a single item from the queue.
| |
| ProcessItems |
Processes the given list of items. Override this method to process queued items as a bulk. Returns the number of processed items.
| |
| RunProcess |
Runs the internal process of the worker
(Inherited from ThreadWorkerT.) | |
| StopExecution |
Stops the worker after finishing its job.
(Inherited from ThreadWorkerT.) |