Package org.keycloak.timer.basic
Class BasicTimerProvider
java.lang.Object
org.keycloak.timer.basic.BasicTimerProvider
- All Implemented Interfaces:
Provider
,TimerProvider
- Author:
- Stian Thorgersen
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.timer.TimerProvider
TimerProvider.TimerTaskContext
-
Constructor Summary
ConstructorDescriptionBasicTimerProvider
(KeycloakSession session, Timer timer, int transactionTimeout, BasicTimerProviderFactory factory) -
Method Summary
Modifier and TypeMethodDescriptioncancelTask
(String taskName) Cancel task and return the details about it, so it can be eventually restored latervoid
close()
void
void
scheduleTask
(ScheduledTask scheduledTask, long intervalMillis, String taskName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.timer.TimerProvider
schedule, scheduleTask
-
Constructor Details
-
BasicTimerProvider
public BasicTimerProvider(KeycloakSession session, Timer timer, int transactionTimeout, BasicTimerProviderFactory factory)
-
-
Method Details
-
schedule
- Specified by:
schedule
in interfaceTimerProvider
-
scheduleTask
- Specified by:
scheduleTask
in interfaceTimerProvider
-
cancelTask
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
-
close
public void close()
-