ERXTaskThread Class Reference

Collaboration diagram for ERXTaskThread:

Collaboration graph
[legend]

List of all members.

Public Member Functions

String elapsedTime ()
 ERXTaskThread (Runnable target)
void setTask (Runnable task)
void startStopWatch ()
void stopStopWatch ()
Runnable task ()

Static Public Member Functions

static< T > NSArray< T > taskForTaskClass (Class< T > clazz)
static NSArray taskInfos ()
static NSArray tasks ()

Private Attributes

ERXStopWatch _stopWatch
Runnable _task


Detailed Description

This is the custom Thread subclass that is used for running background tasks. This Thread subclass is automatically created by the ERXTaskThreadFactory which in turn is used by the ERXTaskThreadPoolExecutor

This Thread subclass allows me to get status info when I enumerate threads in the application.

Author:
kieran

Constructor & Destructor Documentation

ERXTaskThread ( Runnable  target  ) 


Member Function Documentation

String elapsedTime (  ) 

void setTask ( Runnable  task  ) 

Parameters:
task the current task being executed

void startStopWatch (  ) 

void stopStopWatch (  ) 

Runnable task (  ) 

Returns:
the current task being executed

static <T> NSArray<T> taskForTaskClass ( Class< T >  clazz  )  [static]

static NSArray taskInfos (  )  [static]

Returns:
NSArray of ERXTaskInfo

static NSArray tasks (  )  [static]

Returns:
NSArray of background tasks


Member Data Documentation

Runnable _task [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:07 2012 for Project Wonder by  doxygen 1.5.8