Package org.keycloak.services.scheduled
Class ScheduledTaskRunner
java.lang.Object
org.keycloak.services.scheduled.ScheduledTaskRunner
- All Implemented Interfaces:
Runnable
,TaskRunner
- Direct Known Subclasses:
ClusterAwareScheduledTaskRunner
- Author:
- Stian Thorgersen
-
Field Summary
Modifier and TypeFieldDescriptionprotected final KeycloakSessionFactory
protected final ScheduledTask
protected final int
-
Constructor Summary
ConstructorDescriptionScheduledTaskRunner
(KeycloakSessionFactory sessionFactory, ScheduledTask task) ScheduledTaskRunner
(KeycloakSessionFactory sessionFactory, ScheduledTask task, int transactionLimit) -
Method Summary
Modifier and TypeMethodDescriptiongetTask()
Returns the task.void
run()
protected void
runTask
(KeycloakSession session) 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
-
Field Details
-
sessionFactory
-
task
-
transactionLimit
protected final int transactionLimit
-
-
Constructor Details
-
ScheduledTaskRunner
-
ScheduledTaskRunner
public ScheduledTaskRunner(KeycloakSessionFactory sessionFactory, ScheduledTask task, int transactionLimit)
-
-
Method Details
-
run
public void run() -
runTask
-
getTask
Description copied from interface:TaskRunner
Returns the task.- Specified by:
getTask
in interfaceTaskRunner
- Returns:
-