| Constructor and Description |
|---|
WorkerQueue() |
WorkerQueue(java.lang.String name) |
WorkerQueue(java.lang.String name,
int priority) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
int |
getQueueSize() |
protected void |
internalRun() |
boolean |
isQueueEmpty() |
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 WorkerQueue()
public WorkerQueue(java.lang.String name)
public WorkerQueue(java.lang.String name,
int priority)
public boolean queueWithoutDependencies(Task<?> task)
IWorkerqueueWithoutDependencies in interface IWorkerpublic int getQueueSize()
getQueueSize in interface IWorkerpublic boolean isQueueEmpty()
isQueueEmpty in interface IWorkerpublic void waitQueueEmpty()
IWorkerwaitQueueEmpty in interface IWorkerpublic void pause(boolean pause)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwableprotected void internalRun()
Bonzai 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