Interface IWorker<T>
- All Superinterfaces:
Comparable<IWorker<T>>, Runnable
- All Known Implementing Classes:
SuiteRunnerWorker, TestMethodWorker, TestNGFutureTask
A runnable object that is used by
GraphThreadPoolExecutor to execute tasks-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault longintgetTasks()default longlongdefault voidsetThreadIdToRunOn(long threadIdToRunOn) Methods inherited from interface Comparable
compareTo
-
Method Details
-
getTasks
-
getTimeOut
long getTimeOut()- Returns:
- the maximum time allowed for the worker to complete the task.
-
getPriority
int getPriority()- Returns:
- the priority of this task.
-
getCurrentThreadId
default long getCurrentThreadId() -
setThreadIdToRunOn
default void setThreadIdToRunOn(long threadIdToRunOn) -
getThreadIdToRunOn
default long getThreadIdToRunOn() -
completed
default boolean completed()
-