ThreadWorkerT Class |
Namespace: CMS.Base
The ThreadWorkerT type exposes the following members.
Name | Description | |
---|---|---|
ThreadWorkerT |
Name | Description | |
---|---|---|
LOG_MAX_LENGTH |
Maximum length of the worker log to prevent memory leaks (100kB by default)
|
Name | Description | |
---|---|---|
Current |
Current thread worker object
| |
DefaultInterval |
Gets the default interval in milliseconds for the worker.
| |
LastRun |
Last run time
| |
Log |
Asynchronous log context used by the worker thread
| |
MaintenanceInterval |
Gets the maintenance interval in milliseconds for the worker. When 0 (default), the maintenance is not performed.
| |
NextMaintenance |
Next maintenance time
| |
PollThread |
Gets or sets thread which is periodically checking for new tasks.
| |
ProcessingPaused |
If set to true, tasks from queue will not be processed.
| |
UseLogContext |
If true, the thread uses a log context for its operations
|
Name | Description | |
---|---|---|
Abort |
Aborts the worker
| |
AbortInternal |
Aborts the worker
| |
CreateThread |
Creates a worker thread object. Override to modify the thread configuration
| |
DoMaintenance |
Runs the maintenance routine for the worker
| |
EnsureRunningThread |
Ensures a running thread for this processor
| |
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.
| |
Initialize |
Initializes the worker. Runs in the worker thread before the thread processes the first iteration.
| |
IsThreadRunning |
Returns true if the worker thread is currently running
| |
Process |
Method processing actions.
| |
Register |
Registers the worker so that it runs within the system
| |
RegisterInternal |
Registers the worker
| |
Reset | Obsolete.
Resets the worker
| |
ResetInternal | Obsolete.
Resets the worker
| |
Run |
Runs the action.
| |
RunAsync |
Runs the task in an asynchronous thread.
| |
RunMaintenance |
Runs the maintenance routine for the worker if it should run.
| |
RunProcess |
Runs the internal process of the worker
| |
StopExecution |
Stops the worker after finishing its job
|