Package org.quartz.jobs
Interface JobDetail
- All Superinterfaces:
Cloneable
,Serializable
- All Known Implementing Classes:
JobDetailImpl
Conveys the detail properties of a given
Job
instance. JobDetails are to be
created/defined with JobBuilder
.
Quartz does not store an actual instance of a Job
class, but instead allows you
to define an instance of one, through the use of a JobDetail
.
Job
s have a name associated with them, which should uniquely identify them within
a single
.
Scheduler
Trigger
s are the 'mechanism' by which Job
s are scheduled. Many
Trigger
s can point to the same Job
, but a single Trigger
can only point to one Job
.
- Author:
- James House
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Return the description given to theJob
instance by its creator (if any).Get aJobBuilder
that is configured to produce aJobDetail
identical to this one.Get the instance ofJob
that will be executed.Get theJobDataMap
that is associated with theJob
.getName()
boolean
The default behavior is to veto any job is currently running concurrent.
-
Method Details
-
getName
String getName() -
getDescription
String getDescription()Return the description given to theJob
instance by its creator (if any).- Returns:
- null if no description was set.
-
getJobClass
Get the instance ofJob
that will be executed. -
getJobDataMap
JobDataMap getJobDataMap()Get theJobDataMap
that is associated with theJob
. -
isConcurrencyAllowed
boolean isConcurrencyAllowed()The default behavior is to veto any job is currently running concurrent. However, concurrent jobs can be created by setting the 'Concurrency' to true- Returns:
-
clone
Object clone() -
getJobBuilder
JobBuilder getJobBuilder()Get aJobBuilder
that is configured to produce aJobDetail
identical to this one.
-