com.atlassian.confluence.rest.client.impl
Class RemoteLongTaskServiceImpl

java.lang.Object
  extended by com.atlassian.confluence.rest.client.AbstractRemoteService<LongTaskService>
      extended by 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.


Constructor Summary
RemoteLongTaskServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
           
 
Method Summary
 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, deleteFuture, deleteFuture, getFutureGenericCollection, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface RemoteLongTaskService
Parameters:
id - the identifier of the task to return
expansions - 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)


Copyright © 2003-2014 Atlassian. All Rights Reserved.