Class AEMTransientWorkflowRunnerImpl
- java.lang.Object
-
- com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
-
- com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractAEMWorkflowRunner
-
- com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AEMTransientWorkflowRunnerImpl
-
- All Implemented Interfaces:
BulkWorkflowRunner
@Service(BulkWorkflowRunner.class) public class AEMTransientWorkflowRunnerImpl extends AbstractAEMWorkflowRunner implements BulkWorkflowRunner
-
-
Field Summary
-
Fields inherited from class com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
AUTH_INFO, SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description AEMTransientWorkflowRunnerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete(Workspace workspace, Payload payload)Marks a payload as being completed.voidforceTerminate(Workspace workspace, Payload payload)Marks a payload being force terminated.org.apache.sling.commons.scheduler.ScheduleOptionsgetOptions(Config config)If a non-null value is returned, the result of run(..) will be scheduled to run w these options.RunnablegetRunnable(Config config)-
Methods inherited from class com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractAEMWorkflowRunner
cleanupActivePayloadGroups, onboardNextPayload, onboardNextPayloadGroup, unscheduleJob
-
Methods inherited from class com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
complete, fail, initialize, initialize, run, start, stop, stop, stopping, stopWithError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.acs.commons.workflow.bulk.execution.BulkWorkflowRunner
complete, initialize, initialize, run, start, stop, stop, stopping, stopWithError
-
-
-
-
Method Detail
-
getRunnable
public Runnable getRunnable(Config config)
- Specified by:
getRunnablein interfaceBulkWorkflowRunner- Parameters:
config- the Config- Returns:
- the runnable object that will be used to perform the work.
-
getOptions
public org.apache.sling.commons.scheduler.ScheduleOptions getOptions(Config config)
Description copied from interface:BulkWorkflowRunnerIf a non-null value is returned, the result of run(..) will be scheduled to run w these options. If null the job will be immediately run in the same thread.- Specified by:
getOptionsin interfaceBulkWorkflowRunner- Parameters:
config- the Config- Returns:
- The Sling Scheduler options or null;
-
complete
public void complete(Workspace workspace, Payload payload) throws Exception
Description copied from interface:BulkWorkflowRunnerMarks a payload as being completed.- Specified by:
completein interfaceBulkWorkflowRunner- Overrides:
completein classAbstractWorkflowRunner- Parameters:
workspace- the Workspacepayload- the completed Payload- Throws:
Exception
-
forceTerminate
public void forceTerminate(Workspace workspace, Payload payload) throws Exception
Description copied from interface:BulkWorkflowRunnerMarks a payload being force terminated.- Specified by:
forceTerminatein interfaceBulkWorkflowRunner- Specified by:
forceTerminatein classAbstractWorkflowRunner- Parameters:
workspace- the Workspacepayload- the completed Payload- Throws:
Exception
-
-