| Constructor and Description |
|---|
WorkerDispatcher(int maxThreads) |
WorkerDispatcher(int maxThreads,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
getQueueSize() |
boolean |
isQueueEmpty() |
boolean |
isWorking() |
void |
pause(boolean pause) |
boolean |
queue(Task<?> task)
Queue a task and process it asynchroneously
|
void |
stop()
Stop the processing of the
Task |
void |
waitQueueEmpty()
Wait the queue is empty and all task has finish, and return
|
public WorkerDispatcher(int maxThreads)
public WorkerDispatcher(int maxThreads,
java.lang.String name)
public boolean queue(Task<?> task)
IWorkerpublic int getQueueSize()
getQueueSize in interface IWorkerpublic boolean isQueueEmpty()
isQueueEmpty in interface IWorkerpublic boolean isWorking()
public void waitQueueEmpty()
IWorkerwaitQueueEmpty in interface IWorkerpublic void pause(boolean pause)
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com