Methods inherited from interface org.springframework.context.SmartLifecycle
isPauseable, stop
Method Details
setInterval
voidsetInterval(long interval)
Triggers the Job at the specified number of milliseconds. Keep cronExpression empty in order to use interval.
Value 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.
Optional element to avoid parallel execution of the Job, by multiple threads or servers. The Job is NOT executed when the lock cannot be obtained!
In case another thread, potentially on another server, holds the lock and does not release it in a timely manner, it will not trigger the job.