public interface ActionScheduler
Modifier and Type | Method and Description |
---|---|
ScheduledAction |
getFirstScheduledAction()
This method is invoked only once to obtain the first action and interval.
|
default boolean |
isReadOnly()
Return
false unless it is guaranteed that all procedures are also read only. |
default boolean |
restrictProcedureByScope()
If this method returns
true that means the type of procedure which this scheduler can run is restricted
based upon the scope type. |
getDependencies
ScheduledAction getFirstScheduledAction()
callback
will be invoked with the result
of the action. The return of the callback will be
used as the next action and interval.
If this method throws an exception or returns null
the task instance will halted and put into an error
state.
ScheduledAction
with the action and interval after which the action is performeddefault boolean restrictProcedureByScope()
true
that means the type of procedure which this scheduler can run is restricted
based upon the scope type.
Default return is false
true
if the type of procedure this scheduler can run should be restricted based upon scopedefault boolean isReadOnly()
false
unless it is guaranteed that all procedures are also read only.true
if all procedures returned by this instance are read only