org.keycloak.timer

## Interface TimerProvider

- All Superinterfaces:
    Provider
  All Known Implementing Classes:
    BasicTimerProvider

      public interface TimerProvider
      extends Provider

  Author:
    Stian Thorgersen

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static interface` | `TimerProvider.TimerTaskContext`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `TimerProvider.TimerTaskContext` | `cancelTask(String taskName)` Cancel task and return the details about it, so it can be eventually restored later
    `void` | `schedule(Runnable runnable, long intervalMillis, String taskName)`
    `void` | `scheduleTask(ScheduledTask scheduledTask, long intervalMillis, String taskName)`

    - ### Methods inherited from interface org.keycloak.provider.Provider

      `close`

- - ### Method Detail

    - #### schedule

          void schedule(Runnable runnable,
                        long intervalMillis,
                        String taskName)

    - #### scheduleTask

          void scheduleTask(ScheduledTask scheduledTask,
                            long intervalMillis,
                            String taskName)

    - #### cancelTask

          TimerProvider.TimerTaskContext cancelTask(String taskName)

      Cancel task and return the details about it, so it can be eventually restored later
      Parameters:
        `taskName` -
      Returns:
        existing task or null if task under this name doesn't exist

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