Package org.keycloak.timer.basic
Class BasicTimerProvider
- java.lang.Object
-
- org.keycloak.timer.basic.BasicTimerProvider
-
- All Implemented Interfaces:
Provider
,TimerProvider
public class BasicTimerProvider extends Object implements TimerProvider
- Author:
- Stian Thorgersen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.timer.TimerProvider
TimerProvider.TimerTaskContext
-
-
Constructor Summary
Constructors Constructor Description BasicTimerProvider(KeycloakSession session, Timer timer, int transactionTimeout, BasicTimerProviderFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimerProvider.TimerTaskContext
cancelTask(String taskName)
Cancel task and return the details about it, so it can be eventually restored latervoid
close()
void
schedule(Runnable runnable, long intervalMillis, String taskName)
void
scheduleTask(ScheduledTask scheduledTask, long intervalMillis, String taskName)
-
-
-
Constructor Detail
-
BasicTimerProvider
public BasicTimerProvider(KeycloakSession session, Timer timer, int transactionTimeout, BasicTimerProviderFactory factory)
-
-
Method Detail
-
schedule
public void schedule(Runnable runnable, long intervalMillis, String taskName)
- Specified by:
schedule
in interfaceTimerProvider
-
scheduleTask
public void scheduleTask(ScheduledTask scheduledTask, long intervalMillis, String taskName)
- Specified by:
scheduleTask
in interfaceTimerProvider
-
cancelTask
public TimerProvider.TimerTaskContext cancelTask(String taskName)
Description copied from interface:TimerProvider
Cancel task and return the details about it, so it can be eventually restored later- Specified by:
cancelTask
in interfaceTimerProvider
- Returns:
- existing task or null if task under this name doesn't exist
-
-