ThreadQueueWorkerTItem, TWorker Methods |
The ThreadQueueWorkerTItem, TWorker generic type exposes the following members.
Name | Description | |
---|---|---|
AbortInternal |
Aborts the worker and clears the queue
(Overrides ThreadWorkerTAbortInternal.) | |
ClearQueue |
Clears the current queue
| |
CreateThread |
Creates a worker thread object. Override to modify the thread configuration
(Inherited from ThreadWorkerT.) | |
Dequeue |
Returns the first item in the queue and removes it
| |
DoMaintenance |
Runs the maintenance routine for the worker
(Inherited from ThreadWorkerT.) | |
Enqueue |
Adds new item to processing queue
| |
Finish |
Finishes the worker process. Implement this method to specify what the worker must do in order to not lose its internal data when being finished. Leave empty if no extra action is required.
(Inherited from ThreadWorkerT.) | |
Initialize |
Initializes the worker. Runs in the worker thread before the thread processes the first iteration.
(Inherited from ThreadWorkerT.) | |
Process |
Method processing queues 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.
| |
RegisterInternal |
Registers the worker
(Inherited from ThreadWorkerT.) | |
ResetInternal | Obsolete.
Resets the worker and clears the queue
(Overrides ThreadWorkerTResetInternal.) | |
Run |
Runs the action.
(Inherited from ThreadWorkerT.) | |
RunAsync |
Runs the task in an asynchronous thread.
(Inherited from ThreadWorkerT.) | |
RunMaintenance |
Runs the maintenance routine for the worker if it should run.
(Inherited from ThreadWorkerT.) | |
RunProcess |
Runs the internal process of the worker
(Inherited from ThreadWorkerT.) |