Class LongTaskServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.longtasks.LongTaskServiceImpl
-
- All Implemented Interfaces:
LongTaskService
public class LongTaskServiceImpl extends Object implements LongTaskService
Default implementation ofLongTaskService
, a shallow wrapper forLongRunningTaskManager
.
-
-
Constructor Summary
Constructors Constructor Description LongTaskServiceImpl(LongRunningTaskManagerInternal longRunningTaskManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PageResponse<LongTaskStatus>
getAll(PageRequest request, Expansion... expansions)
Returns the status of all tracked long-running tasks visible to the user.Optional<LongTaskStatus>
getStatus(LongTaskId id, Expansion... expansions)
Returns the status of a long-running task.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.api.service.longtasks.LongTaskService
get
-
-
-
-
Constructor Detail
-
LongTaskServiceImpl
public LongTaskServiceImpl(LongRunningTaskManagerInternal longRunningTaskManager)
-
-
Method Detail
-
getStatus
public Optional<LongTaskStatus> getStatus(LongTaskId id, Expansion... expansions)
Description copied from interface:LongTaskService
Returns the status of a long-running task.- Specified by:
getStatus
in interfaceLongTaskService
- Parameters:
id
- the identifier of the task to returnexpansions
- additional information about the task returned- Returns:
- the long running task with the supplied id
-
getAll
public PageResponse<LongTaskStatus> getAll(PageRequest request, Expansion... expansions)
Description copied from interface:LongTaskService
Returns the status of all tracked long-running tasks visible to the user.- Specified by:
getAll
in interfaceLongTaskService
- Parameters:
request
- defines the page of tasks to be returnedexpansions
- additional information about the tasks returned- Returns:
- the currently-tracked long running tasks
-
-