org.codehaus.plexus.taskqueue.execution
Interface TaskQueueExecutor

All Known Implementing Classes:
ThreadedTaskQueueExecutor

public interface TaskQueueExecutor

Version:
$Id: TaskQueueExecutor.java 3807 2006-09-02 12:33:18Z kenney $
Author:
Trygve Laugstøl

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 boolean cancelTask(Task task)
          Cancels execution of this task, if it's currently running.
 Task getCurrentTask()
          Returns the currently executing task.
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

getCurrentTask

public Task getCurrentTask()
Returns the currently executing task.

Returns:
the currently executing task.

cancelTask

public boolean cancelTask(Task task)
Cancels execution of this task, if it's currently running. Does NOT remove it from the associated queue!

Parameters:
task - The task to cancel
Returns:
true if the task was cancelled, false if the task was not executing.


Copyright © 2001-2007 Codehaus. All Rights Reserved.