public class ThreadEngine
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.Collection<java.util.concurrent.Future<?>> |
futures
The futures.
|
| Modifier and Type | Method and Description |
|---|---|
void |
blockTillDone()
Block till done.
|
java.util.Collection<java.util.concurrent.Future<?>> |
getFutures()
Gets the futures.
|
static ThreadEngine |
getInstance()
Gets the single instance of ThreadEngine.
|
boolean |
isMonitor()
Checks if is monitor.
|
void |
run(ThreadTaskImpl myRunnable)
Run.
|
void |
setMonitor(boolean isMonitor)
Sets the monitor.
|
public java.util.Collection<java.util.concurrent.Future<?>> futures
public static ThreadEngine getInstance()
public void blockTillDone()
public java.util.Collection<java.util.concurrent.Future<?>> getFutures()
public boolean isMonitor()
public void run(ThreadTaskImpl myRunnable)
myRunnable - the my runnablepublic void setMonitor(boolean isMonitor)
isMonitor - the new monitor