Package com.ardor3d.util
Class GameTaskQueueManager
java.lang.Object
com.ardor3d.util.GameTaskQueueManager
GameTaskQueueManager
is just a simple Singleton class allowing easy access to task queues.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addQueue
(String name, GameTaskQueue queue) static GameTaskQueueManager
clearManager
(Object key) void
Clears all tasks from the queues managed by this manager.static GameTaskQueueManager
getManager
(Object key) void
moveTasksTo
(GameTaskQueueManager manager) <V> Future
<V> This method addscallable
to the queue to be invoked in the render() method in the OpenGL thread.<V> Future
<V> This method addscallable
to the queue to be invoked in the update() method in the OpenGL thread.
-
Method Details
-
getManager
-
clearManager
-
addQueue
-
getQueue
-
moveTasksTo
-
clearTasks
public void clearTasks()Clears all tasks from the queues managed by this manager. -
update
This method addscallable
to the queue to be invoked in the update() method in the OpenGL thread. The Future returned may be utilized to cancel the task or wait for the return object.- Type Parameters:
V
- the return type of the callable- Parameters:
callable
- the callable- Returns:
- Future
-
render
This method addscallable
to the queue to be invoked in the render() method in the OpenGL thread. The Future returned may be utilized to cancel the task or wait for the return object.- Type Parameters:
V
- the return type of the callable- Parameters:
callable
- the callable- Returns:
- Future
-