com.atlassian.confluence.internal.longrunning
Interface LongRunningTaskManagerInternal

All Superinterfaces:
LongRunningTaskManager
All Known Implementing Classes:
DefaultLongRunningTaskManager

public interface LongRunningTaskManagerInternal
extends LongRunningTaskManager

Internal version of the LongRunningTaskManager interface; see the package-info.java for rationale.


Method Summary
 PageResponse<LongTaskStatus> getAllTasks(ConfluenceUser asUser, LimitedRequest request)
          Get all currently-tracked tasks that the specified user can see.
 LongRunningTaskId queueLongRunningTask(com.atlassian.core.task.longrunning.LongRunningTask task)
          Start tracking a long running task that should be started in a new thread when startIfQueued(com.atlassian.confluence.util.longrunning.LongRunningTaskId) is called.
 java.util.List<LongTaskStatus> removeComplete()
          Remove completed tasks from the tracker.
 void startIfQueued(LongRunningTaskId taskId)
          Starts the task in a new thread if it has previously been queued.
 
Methods inherited from interface com.atlassian.confluence.util.longrunning.LongRunningTaskManager
getLongRunningTask, resume, startLongRunningTask, stop, stopTrackingLongRunningTask
 

Method Detail

queueLongRunningTask

LongRunningTaskId queueLongRunningTask(com.atlassian.core.task.longrunning.LongRunningTask task)
Start tracking a long running task that should be started in a new thread when startIfQueued(com.atlassian.confluence.util.longrunning.LongRunningTaskId) is called.

Parameters:
task - the task to perform
Returns:
an ID that can be used to look up the task

startIfQueued

void startIfQueued(LongRunningTaskId taskId)
Starts the task in a new thread if it has previously been queued.

Parameters:
taskId - the ID of the task

getAllTasks

PageResponse<LongTaskStatus> getAllTasks(ConfluenceUser asUser,
                                         LimitedRequest request)
Get all currently-tracked tasks that the specified user can see.


removeComplete

java.util.List<LongTaskStatus> removeComplete()
Remove completed tasks from the tracker.

Returns:
details of the removed tasks


Copyright © 2003-2014 Atlassian. All Rights Reserved.