Package org.testng.internal.thread.graph
Class GraphThreadPoolExecutor.PhoneyWorker
java.lang.Object
org.testng.internal.thread.graph.GraphThreadPoolExecutor.PhoneyWorker
- All Implemented Interfaces:
Comparable<IWorker<T>>
,Runnable
,IWorker<T>
- Enclosing class:
- GraphThreadPoolExecutor<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.thread.IWorker
completed, getCurrentThreadId, setThreadIdToRunOn
-
Field Details
-
threadId
private long threadId
-
-
Constructor Details
-
PhoneyWorker
public PhoneyWorker(long threadId)
-
-
Method Details
-
getTasks
-
getTimeOut
public long getTimeOut()- Specified by:
getTimeOut
in interfaceIWorker<T>
- Returns:
- the maximum time allowed for the worker to complete the task.
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceIWorker<T>
- Returns:
- the priority of this task.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<IWorker<T>>
-
run
public void run() -
getThreadIdToRunOn
public long getThreadIdToRunOn()- Specified by:
getThreadIdToRunOn
in interfaceIWorker<T>
-