| Constructor and Description |
|---|
WorkerDispatcher(int maxThreads) |
WorkerDispatcher(int maxThreads,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
int |
getQueueSize() |
boolean |
isQueueEmpty() |
boolean |
isWorking() |
void |
pause(boolean pause) |
boolean |
queueWithoutDependencies(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 queueWithoutDependencies(Task<?> task)
IWorkerqueueWithoutDependencies in interface 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)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com