org.sapia.ubik.taskman
Class DefaultTaskManager

java.lang.Object
  extended by org.sapia.ubik.taskman.DefaultTaskManager
All Implemented Interfaces:
TaskManager

public class DefaultTaskManager
extends java.lang.Object
implements TaskManager

An instance of this class executes Tasks in a separate thread: a single thread is shared among multiple tasks.

Author:
yduchesne

Field Summary
static long DEFAULT_MIN_DELAY
           
 
Constructor Summary
DefaultTaskManager()
           
 
Method Summary
 void addTask(TaskContext ctx, Task task)
          Creates an instance of this class.
 void shutdown()
          Shuts down this instance (task processing halts).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MIN_DELAY

public static long DEFAULT_MIN_DELAY
Constructor Detail

DefaultTaskManager

public DefaultTaskManager()
Method Detail

addTask

public void addTask(TaskContext ctx,
                    Task task)
Description copied from interface: TaskManager
Creates an instance of this class.

Specified by:
addTask in interface TaskManager
Parameters:
ctx - the TaskContext that provides information about the task to execute.
task - the Task to execute.

shutdown

public void shutdown()
Description copied from interface: TaskManager
Shuts down this instance (task processing halts).

Specified by:
shutdown in interface TaskManager


Copyright © 2010 Sapia OSS. All Rights Reserved.