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
Constructors Constructor Description RemoteLongTaskServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<LongTaskStatus>>
get(LongTaskId id, Expansion... expansions)
Returns the status of a long-running task.com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<LongTaskStatus>>
getStatus(LongTaskSubmission submission)
-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, putCompletionStage, putFuture
-
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.rest.client.RemoteLongTaskService
getStatus
-
-
-
-
Constructor Detail
-
RemoteLongTaskServiceImpl
public RemoteLongTaskServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
-
Method Detail
-
get
public com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<LongTaskStatus>> get(LongTaskId id, Expansion... expansions)
Description copied from interface:RemoteLongTaskService
Returns the status of a long-running task.- Specified by:
get
in interfaceRemoteLongTaskService
- Parameters:
id
- the identifier of the task to returnexpansions
- additional information about the- Returns:
- the long running task with the supplied id
-
getStatus
public com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<LongTaskStatus>> getStatus(LongTaskSubmission submission)
-
-