Class LongTaskRpc
java.lang.Object
com.atlassian.confluence.it.rpc.delegates.admin.LongTaskRpc
Makes remote calls to the LongTaskService
- Since:
- 6.13.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoLongTaskAndWaitForResult(Supplier<LongTaskSubmission> longTaskSubmissionSupplier, String failureMessage) Fetches the LongTaskSubmission from the supplier and polls the LongTaskService until the task finishes or the poller times out (whichever comes first)booleanwaitForLongTaskResult(String taskId, String failureMessage) Polls the LongTaskService until the task finishes or the poller times out (whichever comes first)
-
Constructor Details
-
LongTaskRpc
-
-
Method Details
-
doLongTaskAndWaitForResult
public boolean doLongTaskAndWaitForResult(Supplier<LongTaskSubmission> longTaskSubmissionSupplier, String failureMessage) Fetches the LongTaskSubmission from the supplier and polls the LongTaskService until the task finishes or the poller times out (whichever comes first)- Returns:
- whether or not the long running task completed successfully within the timeout
-
waitForLongTaskResult
Polls the LongTaskService until the task finishes or the poller times out (whichever comes first)- Returns:
- whether or not the long running task completed successfully within the timeout
-