Package org.keycloak.services.scheduled
Class ClusterAwareScheduledTaskRunner
java.lang.Object
org.keycloak.services.scheduled.ScheduledTaskRunner
org.keycloak.services.scheduled.ClusterAwareScheduledTaskRunner
- All Implemented Interfaces:
Runnable
,TaskRunner
Ensures that there are not concurrent executions of same task (either on this host or any other cluster host)
- Author:
- Marek Posolda
-
Field Summary
Fields inherited from class org.keycloak.services.scheduled.ScheduledTaskRunner
sessionFactory, task, transactionLimit
-
Constructor Summary
ConstructorDescriptionClusterAwareScheduledTaskRunner
(KeycloakSessionFactory sessionFactory, ScheduledTask task, long intervalMillis) -
Method Summary
Methods inherited from class org.keycloak.services.scheduled.ScheduledTaskRunner
getTask, run
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.timer.TaskRunner
getTaskName
-
Constructor Details
-
ClusterAwareScheduledTaskRunner
public ClusterAwareScheduledTaskRunner(KeycloakSessionFactory sessionFactory, ScheduledTask task, long intervalMillis)
-
-
Method Details
-
runTask
- Overrides:
runTask
in classScheduledTaskRunner
-