play.jobs
Class JobsPlugin
java.lang.Object
play.PlayPlugin
play.jobs.JobsPlugin
- All Implemented Interfaces:
- java.lang.Comparable<PlayPlugin>
public class JobsPlugin
- extends PlayPlugin
Methods inherited from class play.PlayPlugin |
afterActionInvocation, afterInvocation, beforeActionInvocation, beforeInvocation, bind, compareTo, compileAll, detectChange, enhance, invocationFinally, onActionInvocationResult, onConfigurationRead, onEvent, onInvocationException, onLoad, onRoutesLoaded, postEvent, rawInvocation, routeRequest, serveStatic |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
executor
public static java.util.concurrent.ScheduledThreadPoolExecutor executor
scheduledJobs
public static java.util.List<Job> scheduledJobs
JobsPlugin
public JobsPlugin()
getStatus
public java.lang.String getStatus()
- Description copied from class:
PlayPlugin
- Retun the plugin status
- Overrides:
getStatus
in class PlayPlugin
afterApplicationStart
public void afterApplicationStart()
- Description copied from class:
PlayPlugin
- Called after the application start.
- Overrides:
afterApplicationStart
in class PlayPlugin
onApplicationStart
public void onApplicationStart()
- Description copied from class:
PlayPlugin
- Called at application start (and at each reloading)
Time to start statefull things.
- Overrides:
onApplicationStart
in class PlayPlugin
scheduleForCRON
public static void scheduleForCRON(Job job)
onApplicationStop
public void onApplicationStop()
- Description copied from class:
PlayPlugin
- Called at application stop (and before each reloading)
Time to shutdown statefull things.
- Overrides:
onApplicationStop
in class PlayPlugin
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly