55 LastSessionRefreshStore store =
createStoreInstance(maxIntervalBetweenMessagesSeconds, maxCount, eventKey);
58 ClusterProvider cluster = kcSession.getProvider(ClusterProvider.class);
59 cluster.registerListener(eventKey,
new LastSessionRefreshListener(kcSession, cache, offline));
62 TimerProvider timer = kcSession.getProvider(TimerProvider.class);
63 timer.scheduleTask((KeycloakSession keycloakSession) -> {
65 store.checkSendingMessage(keycloakSession, Time.currentTime());
67 }, timerIntervalMs, eventKey);
LastSessionRefreshStore createStoreInstance(int maxIntervalBetweenMessagesSeconds, int maxCount, String eventKey)
Definition: LastSessionRefreshStoreFactory.java:73
static final String LSR_PERIODIC_TASK_NAME
Definition: LastSessionRefreshStoreFactory.java:44
static final String LSR_OFFLINE_PERIODIC_TASK_NAME
Definition: LastSessionRefreshStoreFactory.java:45