Class JobExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.process.scheduler.JobExecutionException
- All Implemented Interfaces:
Serializable
An exception thrown from job implementations.
It may be used to refire the job or to unschedule it.
By default the job is not refired and not unscheduled
- Since:
- 11.0
- Author:
- Mihai Bob
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJobExecutionException
(IJobId id, String message) JobExecutionException
(IJobId id, String message, Throwable cause) JobExecutionException
(IJobId id, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setRefireJobImmediately
(boolean refireJobImmediately) Sets whether the job should refire as soon as possiblevoid
setUnscheduleJob
(boolean unscheduleJob) Sets whether the job should be unscheduledMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Method Details
-
isRefireJobImmediately
public boolean isRefireJobImmediately() -
setRefireJobImmediately
public void setRefireJobImmediately(boolean refireJobImmediately) Sets whether the job should refire as soon as possible- Parameters:
refireJobImmediately
-true
to refire
-
isUnscheduleJob
public boolean isUnscheduleJob() -
setUnscheduleJob
public void setUnscheduleJob(boolean unscheduleJob) Sets whether the job should be unscheduled- Parameters:
unscheduleJob
-true
to unschedule
-