public interface JobPerformable<T extends CronJobModel>
ServicelayerJob item. The implementing class has to be registered at global
spring context. At the job item itself only the bean id is configured.| Modifier and Type | Method and Description |
|---|---|
boolean |
isAbortable()
Checks whether the execution is implemented abortable.
|
boolean |
isPerformable()
Checks whether the execution can be performed at the moment.
|
PerformResult |
perform(T cronJob)
The execution body for a
ServicelayerJob. |
PerformResult perform(T cronJob)
ServicelayerJob. Implement here your execution logic. It can be called
synchronous or asynchronous. So be aware of thread-safety. Method will return a result object saying if the
execution has reached end and if it was successful.cronJob - the related CronJob in whose context the execution will be performed.PerformResult that indicates whether the execution was successfully executed
or not and has finished or not.boolean isPerformable()
boolean isAbortable()
Copyright © 2017 SAP SE. All Rights Reserved.