@ProviderType public final class Actions extends Object
| Modifier and Type | Method and Description |
|---|---|
static ActionManager |
getCurrentActionManager()
Obtain the current action manager -- this is necessary for additional tracking such as current item
|
static CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> |
retry(int retries,
long pausePerRetry,
CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> action)
Retry a single action
|
static CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> |
retryAll(int retries,
long pausePerRetry,
CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> action)
Retry provided action a given number of times before giving up and
throwing an error.
|
static void |
setCurrentActionManager(ActionManager a) |
static void |
setCurrentItem(String item) |
static CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> |
startSyntheticWorkflow(SyntheticWorkflowModel model,
String path,
SyntheticWorkflowRunner workflowRunner)
Run a synthetic workflow on a single node
|
static CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> |
startSyntheticWorkflows(SyntheticWorkflowModel model,
SyntheticWorkflowRunner workflowRunner)
Run nodes through synthetic workflow
|
public static ActionManager getCurrentActionManager()
public static void setCurrentActionManager(ActionManager a)
public static void setCurrentItem(String item)
public static final CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> retryAll(int retries, long pausePerRetry, CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> action)
retries - Number of retries to attemptpausePerRetry - Milliseconds to wait between attemptsaction - Action to attemptpublic static final CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> startSyntheticWorkflows(SyntheticWorkflowModel model, SyntheticWorkflowRunner workflowRunner)
model - Synthetic workflow modelpublic static final CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> retry(int retries, long pausePerRetry, CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> action)
retries - Number of retries to attemptpausePerRetry - Milliseconds to wait between attemptsaction - Action to attemptpublic static final CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> startSyntheticWorkflow(SyntheticWorkflowModel model, String path, SyntheticWorkflowRunner workflowRunner)
model - path - Copyright © 2013–2020 Adobe. All rights reserved.