public class OfflinePersistentUserSessionLoader extends Object implements SessionLoader, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
PERSISTENT_SESSIONS_LOADED |
static String |
PERSISTENT_SESSIONS_LOADED_IN_CURRENT_DC |
| Constructor and Description |
|---|
OfflinePersistentUserSessionLoader() |
| 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.
|
public static final String PERSISTENT_SESSIONS_LOADED
public static final String PERSISTENT_SESSIONS_LOADED_IN_CURRENT_DC
public void init(KeycloakSession session)
SessionLoaderinit in interface SessionLoaderpublic int getSessionsCount(KeycloakSession session)
SessionLoadergetSessionsCount in interface SessionLoaderpublic boolean loadSessions(KeycloakSession session, int first, int max)
SessionLoaderloadSessions in interface SessionLoaderpublic boolean isFinished(BaseCacheInitializer initializer)
SessionLoaderisFinished in interface SessionLoaderpublic void afterAllSessionsLoaded(BaseCacheInitializer initializer)
SessionLoaderafterAllSessionsLoaded in interface SessionLoaderCopyright © 2018 JBoss by Red Hat. All rights reserved.