Class GameTaskQueueManager

java.lang.Object
com.ardor3d.util.GameTaskQueueManager

public final class GameTaskQueueManager extends Object
GameTaskQueueManager is just a simple Singleton class allowing easy access to task queues.
  • Method Details

    • getManager

      public static GameTaskQueueManager getManager(Object key)
    • clearManager

      public static GameTaskQueueManager clearManager(Object key)
    • addQueue

      public void addQueue(String name, GameTaskQueue queue)
    • getQueue

      public GameTaskQueue getQueue(String name)
    • moveTasksTo

      public void moveTasksTo(GameTaskQueueManager manager)
    • clearTasks

      public void clearTasks()
      Clears all tasks from the queues managed by this manager.
    • update

      public <V> Future<V> update(Callable<V> callable)
      This method adds callable 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

      public <V> Future<V> render(Callable<V> callable)
      This method adds callable 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