Package org.keycloak.services.scheduled
Class ClusterAwareScheduledTaskRunner
java.lang.Object
org.keycloak.services.scheduled.ScheduledTaskRunner
org.keycloak.services.scheduled.ClusterAwareScheduledTaskRunner
- All Implemented Interfaces:
Runnable
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
-
Constructor Summary
ConstructorDescriptionClusterAwareScheduledTaskRunner
(KeycloakSessionFactory sessionFactory, ScheduledTask task, long intervalMillis) -
Method Summary
Methods inherited from class org.keycloak.services.scheduled.ScheduledTaskRunner
run
-
Constructor Details
-
ClusterAwareScheduledTaskRunner
public ClusterAwareScheduledTaskRunner(KeycloakSessionFactory sessionFactory, ScheduledTask task, long intervalMillis)
-
-
Method Details
-
runTask
- Overrides:
runTask
in classScheduledTaskRunner
-