|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
er.extensions.concurrency.ERXTaskThread
public class ERXTaskThread
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
The purpose of this subclass is
ERXTaskThreadFactory
using instanceof when enumerating all threads
ERXTaskThreadFactory
A user does not generally need to instantiate this class. This class is generally used by ExecutorService
instances
that are created by ERXExecutorService
static utility methods.
ERXTaskThreadPoolExecutor
,
ERXExecutorService
,
ERXTaskThreadFactory
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ERXTaskThread(java.lang.Runnable target)
|
Method Summary | ||
---|---|---|
java.lang.String |
elapsedTime()
|
|
void |
setTask(java.lang.Runnable task)
|
|
void |
startStopWatch()
|
|
void |
stopStopWatch()
|
|
java.lang.Runnable |
task()
|
|
static
|
taskForTaskClass(java.lang.Class<T> clazz)
|
|
static com.webobjects.foundation.NSArray |
taskInfos()
|
|
static com.webobjects.foundation.NSArray |
tasks()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ERXTaskThread(java.lang.Runnable target)
Method Detail |
---|
public java.lang.Runnable task()
public void setTask(java.lang.Runnable task)
task
- the current task being executed
TODO: Check if the Runnable is a Future wrapping the real task and unwrap it.public static com.webobjects.foundation.NSArray tasks()
public static com.webobjects.foundation.NSArray taskInfos()
ERXTaskInfo
public static <T> com.webobjects.foundation.NSArray<T> taskForTaskClass(java.lang.Class<T> clazz)
public void startStopWatch()
public java.lang.String elapsedTime()
public void stopStopWatch()
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |