i3.dragos.core
Interface Task

All Known Implementing Classes:
AbstractTask, GarbageCollectorTask

public interface Task

A Task is a light-weight execution unit which is used to perform regular jobs. Tasks are executed synchronously with the task scheduler hence they should quit as quick as possible. If this not possible the task should spawn itself as a new thread.

Author:
Boris Boehlen <boehlen@cs.rwth-aachen.de>

Method Summary
 void execute()
          Exceutes the tasks.
 long getInterval()
          Returns the execution interval of the task.
 void setInterval(long interval)
          Sets the execution interval of the task.
 

Method Detail

execute

void execute()
Exceutes the tasks.


setInterval

void setInterval(long interval)
Sets the execution interval of the task.

Parameters:
interval - The execution interval of the task.

getInterval

long getInterval()
Returns the execution interval of the task.

Returns:
The execution interval of the task.


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.