Namespace: OtlThreadPool

Class TOTPWorkerThread

System.Classes.TThread
  |
  +-- OtlThreadPool.TOTPWorkerThread

public class TOTPWorkerThread ( System.Classes.TThread )

Sealed
False
Abstract
False
Persistent
False

Property Summary
  public  TOTPUnhandledWorkerException Asy_OnUnhandledException
 
  public  OtlSync.TOmniTransitionEvent NewWorkEvent
 
  public  OtlComm.IOmniCommunicationEndpoint OwnerCommEndpoint
 
  public  boolean RemoveFromPool
 
  public  int64 StartIdle_ms
 
  public  int64 StartStopping_ms
 
  public  boolean Stopped
 
  public  OtlSync.TOmniTransitionEvent TerminateEvent
 
  public  TOTPWorkItem WorkItem_ref
 
 

Constructor Summary
Create(ThreadDataFactory: TOTPThreadDataFactory )
 
 

Method Summary
  public Sub Asy_Stop()
 
  public function boolean Asy_TerminateWorkItem(workItem: TOTPWorkItem )
Take the work item ownership from the thread. Called asynchronously from the thread pool.
  public function string Description()
 
  public Sub Destroy()
 
  public Sub Execute()
 
  public function boolean GetWorkItemInfo(scheduledAt: TDateTime; startedAt: TDateTime; description: string)
 
  public function boolean IsExecuting(taskID: int64)
 
  public Sub Start()
 
  public function string WorkItemDescription()
 
 

Property Detail

Asy_OnUnhandledException

public Asy_OnUnhandledException: TOTPUnhandledWorkerException 
Type
TOTPUnhandledWorkerException
Class
False
Access
read/write

NewWorkEvent

public NewWorkEvent: OtlSync.TOmniTransitionEvent 
Type
TOmniTransitionEvent
Class
False
Access
read

OwnerCommEndpoint

public OwnerCommEndpoint: OtlComm.IOmniCommunicationEndpoint 
Type
IOmniCommunicationEndpoint
Class
False
Access
read

RemoveFromPool

public RemoveFromPool: boolean
Type
boolean
Class
False
Access
read

StartIdle_ms

public StartIdle_ms: int64
Type
int64
Class
False
Access
read/write

StartStopping_ms

public StartStopping_ms: int64
Type
int64
Class
False
Access
read/write

Stopped

public Stopped: boolean
Type
boolean
Class
False
Access
read/write

TerminateEvent

public TerminateEvent: OtlSync.TOmniTransitionEvent 
Type
TOmniTransitionEvent
Class
False
Access
read

WorkItem_ref

public WorkItem_ref: TOTPWorkItem 
Type
TOTPWorkItem
Class
False
Access
read/write

Constructor Detail

Create

public constructor Create(ThreadDataFactory: TOTPThreadDataFactory )
Final
False
Reintroduce
False
Virtual
False
Override
False
Abstract
False

Method Detail

Asy_Stop

public procedure Asy_Stop()
Final
False
Reintroduce
False
Abstract
False
Override
False
Virtual
False
Class
False

Asy_TerminateWorkItem

public function Asy_TerminateWorkItem(workItem: TOTPWorkItem ): boolean
Final
False
summary
Take the work item ownership from the thread. Called asynchronously from the thread pool.
returns
True if thread should be killed.
Reintroduce
False
Abstract
False
Returns
boolean
Override
False
Virtual
False
Since
2008-07-26
Class
False

Description

public function Description(): string
Final
False
Reintroduce
False
Abstract
False
Returns
string
Override
False
Virtual
False
Class
False

Destroy

public procedure Destroy()
Reintroduce
False
Virtual
False
Override
True
Abstract
False
Final
False

Execute

public procedure Execute()
Final
False
Reintroduce
False
Abstract
False
Override
True
Virtual
False
Class
False

GetWorkItemInfo

public function GetWorkItemInfo(scheduledAt: TDateTime; startedAt: TDateTime; description: string): boolean
Final
False
Reintroduce
False
Abstract
False
Returns
boolean
Override
False
Virtual
False
Class
False

IsExecuting

public function IsExecuting(taskID: int64): boolean
Final
False
Reintroduce
False
Abstract
False
Returns
boolean
Override
False
Virtual
False
Class
False

Start

public procedure Start()
Final
False
Reintroduce
False
Abstract
False
Override
False
Virtual
False
Class
False

WorkItemDescription

public function WorkItemDescription(): string
Final
False
Reintroduce
False
Abstract
False
Returns
string
Override
False
Virtual
False
Class
False

Association Link

to Delegate TOTPUnhandledWorkerException

Supplier
TOTPUnhandledWorkerException
Directed
False
Client
owtAsy_OnUnhandledException
Type
association

to Interface IOmniTwoWayChannel

Supplier
IOmniTwoWayChannel
Directed
False
Client
owtCommChannel
Type
association

to Class TOmniTransitionEvent

Supplier
TOmniTransitionEvent
Directed
False
Client
owtNewWorkEvent
Type
association

to Class TOmniTransitionEvent

Supplier
TOmniTransitionEvent
Directed
False
Client
owtTerminateEvent
Type
association

to Struct TOTPThreadDataFactory

Supplier
TOTPThreadDataFactory
Directed
False
Client
owtThreadDataFactory
Type
association

to Interface IOmniCriticalSection

Supplier
IOmniCriticalSection
Directed
False
Client
owtWorkItemLock
Type
association

to Class TOTPWorkItem

Supplier
TOTPWorkItem
Directed
False
Client
owtWorkItem_ref
Type
association

to Delegate TOTPUnhandledWorkerException

Supplier
TOTPUnhandledWorkerException
Directed
False
Client
Asy_OnUnhandledException
Type
association

to Class TOmniTransitionEvent

Supplier
TOmniTransitionEvent
Directed
False
Client
NewWorkEvent
Type
association

to Interface IOmniCommunicationEndpoint

Supplier
IOmniCommunicationEndpoint
Directed
False
Client
OwnerCommEndpoint
Type
association

to Class TOmniTransitionEvent

Supplier
TOmniTransitionEvent
Directed
False
Client
TerminateEvent
Type
association

to Class TOTPWorkItem

Supplier
TOTPWorkItem
Directed
False
Client
WorkItem_ref
Type
association