Class RemoteLongTaskServiceImpl
java.lang.Object
com.atlassian.confluence.rest.client.AbstractRemoteService<LongTaskService>
com.atlassian.confluence.rest.client.impl.RemoteLongTaskServiceImpl
- All Implemented Interfaces:
RemoteLongTaskService
public class RemoteLongTaskServiceImpl
extends AbstractRemoteService<LongTaskService>
implements RemoteLongTaskService
LongTaskService
implementation that communicates with Confluence remotely.-
Field Summary
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteLongTaskServiceImpl
(AuthenticatedWebResourceProvider provider, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptiongetStatusCompletionStage
(LongTaskId id, Expansion... expansions) Returns the status of a long-running task.Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfGenericListResponse, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, newExperimentalRestWebTarget, newWebTarget, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postVoidCompletionStage, putCompletionStage, putVoidCompletionStage
-
Constructor Details
-
RemoteLongTaskServiceImpl
public RemoteLongTaskServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor) - Since:
- 9.0
-
-
Method Details
-
getStatusCompletionStage
public CompletionStage<Optional<LongTaskStatus>> getStatusCompletionStage(LongTaskId id, Expansion... expansions) Description copied from interface:RemoteLongTaskService
Returns the status of a long-running task.- Specified by:
getStatusCompletionStage
in interfaceRemoteLongTaskService
- Parameters:
id
- the identifier of the task to returnexpansions
- additional information about the task- Returns:
- the long-running task with the supplied id
-