Class JobReschedulingManager
java.lang.Object
org.apache.sling.event.impl.jobs.queues.JobReschedulingManager
A centralized service to manage the delay after which tasks are executed.
This service is used to reschedule failed jobs, which are submitted to the queue again
after the delay has passed. For that reason the threadpool to manage that delay is quite small,
as the re-submission of the jobs into their respective queues is fast.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidreschedule(Runnable task, long delayInMilis) Start the provided task with a delay in a fire and forgot way
-
Constructor Details
-
JobReschedulingManager
public JobReschedulingManager()
-
-
Method Details
-
activate
-
deactivate
public void deactivate() -
reschedule
Start the provided task with a delay in a fire and forgot way- Parameters:
task- the task to executedelayInMilis- the delay in milliseconds
-