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 of LongTaskService, a shallow wrapper for LongRunningTaskManager.
  • Constructor Details

  • Method Details

    • 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 interface LongTaskService
      Parameters:
      id - the identifier of the task to return
      expansions - 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 interface LongTaskService
      Parameters:
      request - defines the page of tasks to be returned
      expansions - additional information about the tasks returned
      Returns:
      the currently-tracked long running tasks