Package org.testng.internal.thread.graph
Class GraphThreadPoolExecutor.PhoneyWorker
- java.lang.Object
-
- org.testng.internal.thread.graph.GraphThreadPoolExecutor.PhoneyWorker
-
- Enclosing class:
- GraphThreadPoolExecutor<T>
private class GraphThreadPoolExecutor.PhoneyWorker extends java.lang.Object implements IWorker<T>
-
-
Field Summary
Fields Modifier and Type Field Description private long
threadId
-
Constructor Summary
Constructors Constructor Description PhoneyWorker(long threadId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(IWorker<T> o)
int
getPriority()
java.util.List<T>
getTasks()
long
getThreadIdToRunOn()
long
getTimeOut()
void
run()
-
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
-
-
-
-
Method Detail
-
getTasks
public java.util.List<T> 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.
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
getThreadIdToRunOn
public long getThreadIdToRunOn()
- Specified by:
getThreadIdToRunOn
in interfaceIWorker<T>
-
-