org.japura.task
Class TaskManager

java.lang.Object
  extended by org.japura.task.TaskManager

public final class TaskManager
extends java.lang.Object

Copyright (C) 2011-2012 Carlos Eduardo Leite de Andrade

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see www.gnu.org/licenses/

For more information, contact: www.japura.org

Author:
Carlos Eduardo Leite de Andrade

Method Summary
static void addListener(TaskManagerListener listener)
           
static void cancel(int controllerGroupId)
           
static void cancelAll()
           
static DebugComponent createDebugPanel()
           
static java.util.List<TaskManagerListener> getListeners()
           
static int getQueueCount()
           
static boolean hasTask()
           
static boolean hasTask(Group group)
           
static void register(Group group, AbstractController.TokenKey tokenKey)
           
static void removeListener(TaskManagerListener listener)
           
static void showDebugWindow()
           
static void submit(Task<?> task)
           
static void submit(Task<?> task, boolean isAsynchronous)
           
static void submit(TaskSequence taskSequence)
           
static void unregister(Group group, AbstractController.TokenKey tokenKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addListener

public static void addListener(TaskManagerListener listener)

removeListener

public static void removeListener(TaskManagerListener listener)

getListeners

public static java.util.List<TaskManagerListener> getListeners()

submit

public static void submit(TaskSequence taskSequence)

submit

public static void submit(Task<?> task)

submit

public static void submit(Task<?> task,
                          boolean isAsynchronous)

register

public static void register(Group group,
                            AbstractController.TokenKey tokenKey)

unregister

public static void unregister(Group group,
                              AbstractController.TokenKey tokenKey)

hasTask

public static boolean hasTask(Group group)

hasTask

public static boolean hasTask()

cancel

public static void cancel(int controllerGroupId)

cancelAll

public static void cancelAll()

getQueueCount

public static int getQueueCount()

createDebugPanel

public static DebugComponent createDebugPanel()

showDebugWindow

public static void showDebugWindow()