Class ScriptScheduler
java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterCommitListener
ch.tocco.nice2.scripting.impl.groovy.cron.ScriptScheduler
- All Implemented Interfaces:
ContextListener, EntityListener, CommitListener, EventListener
used to schedule
Dynamic_batch_job entities that have a schedule defined-
Constructor Summary
ConstructorsConstructorDescriptionScriptScheduler(CommandExecutor executor, ScriptSchedulerService scriptSchedulerService) -
Method Summary
Modifier and TypeMethodDescriptioncustomizeMode(Mode<E> mode) override this method to customize the mode for task to be executed after the commitprotected AfterCommitTaskMethods inherited from class CollectingAfterCommitListener
afterCommit, beforeCommit, contextDestroying, entityCreated, entityDeleted, entityUpdated, handleAfterCommit, setFutureCollectorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommitListener
afterFlush, priorityMethods inherited from interface ContextListener
transactionStarted
-
Constructor Details
-
ScriptScheduler
-
-
Method Details
-
getAfterCommitTask
- Specified by:
getAfterCommitTaskin classCollectingAfterCommitListener
-
customizeMode
Description copied from class:CollectingAfterCommitListeneroverride this method to customize the mode for task to be executed after the commit- Overrides:
customizeModein classCollectingAfterCommitListener- Parameters:
mode- mode with default settings for CollectingAfterCommitListeners, make changes
-