Package org.keycloak.services.scheduled
Class ClusterAwareScheduledTaskRunner
- java.lang.Object
-
- org.keycloak.services.scheduled.ScheduledTaskRunner
-
- org.keycloak.services.scheduled.ClusterAwareScheduledTaskRunner
-
- All Implemented Interfaces:
Runnable
public class ClusterAwareScheduledTaskRunner extends ScheduledTaskRunner
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
Constructors Constructor Description ClusterAwareScheduledTaskRunner(KeycloakSessionFactory sessionFactory, ScheduledTask task, long intervalMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
runTask(KeycloakSession session)
-
Methods inherited from class org.keycloak.services.scheduled.ScheduledTaskRunner
run
-
-
-
-
Constructor Detail
-
ClusterAwareScheduledTaskRunner
public ClusterAwareScheduledTaskRunner(KeycloakSessionFactory sessionFactory, ScheduledTask task, long intervalMillis)
-
-
Method Detail
-
runTask
protected void runTask(KeycloakSession session)
- Overrides:
runTask
in classScheduledTaskRunner
-
-