@FrankDocGroup(name="Job") public interface IJob extends IConfigurable
Modifier and Type | Method and Description |
---|---|
void |
execute()
Actual implementation of the
IJob . |
void |
executeJob()
Called from
ConfiguredJob which should trigger this job definition. |
String |
getCronExpression() |
long |
getInterval() |
org.quartz.JobDetail |
getJobDetail() |
String |
getJobGroup()
The group of the Job, used in combination with Name to create a unique key.
|
Locker |
getLocker() |
MessageKeeper |
getMessageKeeper() |
String |
getName()
The name of the Job, used in combination with JobGroup to create a unique key.
|
StatisticsKeeper |
getStatisticsKeeper() |
boolean |
isConfigured()
Only register (and trigger) Jobs that have been successfully configured.
|
void |
setCronExpression(String cronExpression)
CRON expression that determines the frequency of execution.
|
void |
setInterval(long interval)
Triggers the Job at the specified number of milliseconds.
|
void |
setLocker(Locker locker)
Optional element to avoid parallel execution of the Job, by multiple threads or servers.
|
configure
setName
getApplicationContext
getConfigurationClassLoader
void execute() throws JobExecutionException, TimeoutException
IJob
. Is wrapped around a Locker
, exceptions
and statistics
will be managed automatically.TimeoutException
- when the TransactionTimeout has been reachedJobExecutionException
- when the implementation fails to executevoid setInterval(long interval)
0
may be used to run once at startup of the application.
A value of 0 in combination with function 'sendMessage' will set dependencyTimeout on the IbisLocalSender to -1 to keep waiting indefinitely instead of 60 seconds for the adapter to start.long getInterval()
void setCronExpression(String cronExpression)
not
be used in combination with Interval.String getCronExpression()
org.quartz.JobDetail getJobDetail()
String getName()
getName
in interface IConfigurationAware
getName
in interface INamedObject
String getJobGroup()
boolean isConfigured()
StatisticsKeeper getStatisticsKeeper()
MessageKeeper getMessageKeeper()
void setLocker(Locker locker)
Locker getLocker()
void executeJob()
ConfiguredJob
which should trigger this job definition.Copyright © 2023 Frank!Framework. All rights reserved.