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 and Description
    `ClusterAwareScheduledTaskRunner(KeycloakSessionFactory sessionFactory, ScheduledTask task, long intervalMillis)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `runTask(KeycloakSession session)`

    - ### Methods inherited from class org.keycloak.services.scheduled.ScheduledTaskRunner

      `run`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ClusterAwareScheduledTaskRunner

          public ClusterAwareScheduledTaskRunner(KeycloakSessionFactory sessionFactory,
                                                 ScheduledTask task,
                                                 long intervalMillis)

  - ### Method Detail

    - #### runTask

          protected void runTask(KeycloakSession session)

      Overrides:
        `runTask` in class `ScheduledTaskRunner`

Copyright © 2020 JBoss by Red Hat. All rights reserved.