public interface SessionLoader
| Modifier and Type | Method and Description |
|---|---|
void |
afterAllSessionsLoaded(BaseCacheInitializer initializer)
Callback triggered on cluster coordinator once it recognize that all sessions were successfully loaded
|
int |
getSessionsCount(KeycloakSession session)
Will be triggered just once on cluster coordinator node to count the number of sessions
|
void |
init(KeycloakSession session)
Will be triggered just once on cluster coordinator node to perform some generic initialization tasks (Eg.
|
boolean |
isFinished(BaseCacheInitializer initializer)
This will be called on nodes to check if loading is finished.
|
boolean |
loadSessions(KeycloakSession session,
int first,
int max)
Will be called on all cluster nodes to load the specified page.
|
void init(KeycloakSession session)
session - int getSessionsCount(KeycloakSession session)
session - boolean loadSessions(KeycloakSession session, int first, int max)
session - first - max - boolean isFinished(BaseCacheInitializer initializer)
initializer - void afterAllSessionsLoaded(BaseCacheInitializer initializer)
initializer - Copyright © 2018 JBoss by Red Hat. All rights reserved.