Class SyntheticWorkflowRunnerImpl
java.lang.Object
com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
com.adobe.acs.commons.workflow.bulk.execution.impl.runners.SyntheticWorkflowRunnerImpl
- All Implemented Interfaces:
BulkWorkflowRunner
@Service
public class SyntheticWorkflowRunnerImpl
extends AbstractWorkflowRunner
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidMarks 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.final RunnablegetRunnable(Config config) voidProcesses a payload under the Workspace.Methods inherited from class com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
complete, fail, initialize, initialize, start, stop, stop, stopping, stopWithErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adobe.acs.commons.workflow.bulk.execution.BulkWorkflowRunner
complete, initialize, initialize, start, stop, stop, stopping, stopWithError
-
Constructor Details
-
SyntheticWorkflowRunnerImpl
public SyntheticWorkflowRunnerImpl()
-
-
Method Details
-
getRunnable
- Specified by:
getRunnablein interfaceBulkWorkflowRunner- Parameters:
config- the Config- Returns:
- the runnable object that will be used to perform the work.
-
getOptions
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;
-
forceTerminate
public void forceTerminate(Workspace workspace, Payload payload) throws org.apache.sling.api.resource.PersistenceException 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:
org.apache.sling.api.resource.PersistenceException
-
complete
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
-
run
Description copied from interface:BulkWorkflowRunnerProcesses a payload under the Workspace.- Specified by:
runin interfaceBulkWorkflowRunner- Overrides:
runin classAbstractWorkflowRunner- Parameters:
workspace- the Workspacepayload- the Payload to process
-