org.keycloak.services.scheduled

## Class ScheduledTaskRunner

- java.lang.Object
- - org.keycloak.services.scheduled.ScheduledTaskRunner

- All Implemented Interfaces:
    Runnable
  Direct Known Subclasses:
    ClusterAwareScheduledTaskRunner

      public class ScheduledTaskRunner
      extends Object
      implements Runnable

  Author:
    Stian Thorgersen

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static ServicesLogger` | `logger`
    `protected KeycloakSessionFactory` | `sessionFactory`
    `protected ScheduledTask` | `task`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ScheduledTaskRunner(KeycloakSessionFactory sessionFactory, ScheduledTask task)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`

- - ### Field Detail

    - #### logger

          protected static final ServicesLogger logger

    - #### sessionFactory

          protected final KeycloakSessionFactory sessionFactory

    - #### task

          protected final ScheduledTask task

  - ### Constructor Detail

    - #### ScheduledTaskRunner

          public ScheduledTaskRunner(KeycloakSessionFactory sessionFactory,
                                     ScheduledTask task)

  - ### Method Detail

    - #### run

          public void run()

      Specified by:
        `run` in interface `Runnable`

    - #### runTask

          protected void runTask(KeycloakSession session)

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