Package play.jobs
Class SimpleJob
- java.lang.Object
-
- play.Invocation
-
- play.jobs.Job<java.lang.Void>
-
- play.jobs.SimpleJob
-
- All Implemented Interfaces:
java.lang.Runnable,java.util.concurrent.Callable<java.lang.Void>
public abstract class SimpleJob extends Job<java.lang.Void>
Base class for jobs that don't return any result
-
-
Field Summary
-
Fields inherited from class play.jobs.Job
executor, invocationType, lastException, lastRun, wasError
-
-
Constructor Summary
Constructors Constructor Description SimpleJob()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddoJob()java.lang.VoiddoJobWithResult()Here you do the job and return a result-
Methods inherited from class play.jobs.Job
_finally, call, every, every, execute, getInvocationContext, in, in, now, run, toString
-
Methods inherited from class play.Invocation
after, before, init, onActionInvocationException, onQueued, onStarted, onSuccess, preInit
-
-
-
-
Method Detail
-
doJob
public abstract void doJob() throws java.lang.Exception- Throws:
java.lang.Exception
-
doJobWithResult
public final java.lang.Void doJobWithResult() throws java.lang.ExceptionDescription copied from class:JobHere you do the job and return a result- Specified by:
doJobWithResultin classJob<java.lang.Void>- Returns:
- The job result
- Throws:
java.lang.Exception
-
-