public class RemoteCacheSessionsLoader extends Object implements SessionLoader
| Constructor and Description |
|---|
RemoteCacheSessionsLoader(String cacheName) |
| 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 RemoteCacheSessionsLoader(String cacheName)
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.