public class LongTaskRpc extends Object
| Constructor and Description |
|---|
LongTaskRpc(AuthenticatedWebResourceProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
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)
|
boolean |
waitForLongTaskResult(String taskId,
String failureMessage)
Polls the LongTaskService until the task finishes or the poller times out (whichever comes first)
|
public LongTaskRpc(AuthenticatedWebResourceProvider provider)
public boolean doLongTaskAndWaitForResult(Supplier<LongTaskSubmission> longTaskSubmissionSupplier, String failureMessage)
longTaskSubmissionSupplier - failureMessage - public boolean waitForLongTaskResult(String taskId, String failureMessage)
taskId - failureMessage - Copyright © 2003–2022 Atlassian. All rights reserved.