Package org.keycloak.timer
Interface TimerProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
BasicTimerProvider
- Author:
- Stian Thorgersen
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncancelTask(String taskName) Cancel task and return the details about it, so it can be eventually restored latergetTasks()default voidSchedule a task with an initial delay that differs from the interval.voiddefault voidschedule(TaskRunner runner, long intervalMillis) default voidschedule(TaskRunner runner, long initialDelayMillis, long intervalMillis) default voidscheduleTask(ScheduledTask scheduledTask, long intervalMillis) voidscheduleTask(ScheduledTask scheduledTask, long intervalMillis, String taskName)
-
Method Details
-
schedule
-
schedule
default void schedule(Runnable runnable, long initialDelayMillis, long intervalMillis, String taskName) Schedule a task with an initial delay that differs from the interval.- Parameters:
runnable- the task to runinitialDelayMillis- delay before the first executionintervalMillis- interval between subsequent executionstaskName- unique name for the task
-
schedule
-
schedule
-
scheduleTask
-
scheduleTask
-
cancelTask
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
-
getTasks
Map<String,TimerProvider.TimerTaskContext> getTasks()
-