keycloak
|
クラス | |
interface | LoaderContext |
公開メンバ関数 | |
void | init (KeycloakSession session) |
LOADER_CONTEXT | computeLoaderContext (KeycloakSession session) |
boolean | loadSessions (KeycloakSession session, LOADER_CONTEXT loaderContext, int segment) |
boolean | isFinished (BaseCacheInitializer initializer) |
void | afterAllSessionsLoaded (BaseCacheInitializer initializer) |
void org.keycloak.models.sessions.infinispan.initializer.SessionLoader< LOADER_CONTEXT extends SessionLoader.LoaderContext >.afterAllSessionsLoaded | ( | BaseCacheInitializer | initializer | ) |
Callback triggered on cluster coordinator once it recognize that all sessions were successfully loaded
initializer |
org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheSessionsLoaderで実装されています。
LOADER_CONTEXT org.keycloak.models.sessions.infinispan.initializer.SessionLoader< LOADER_CONTEXT extends SessionLoader.LoaderContext >.computeLoaderContext | ( | KeycloakSession | session | ) |
Will be triggered just once on cluster coordinator node to count the number of segments and other context data specific to the worker task. Each segment will be then later computed in one "worker" task
This method could be expensive to call, so the "computed" loaderContext object is passed among workers/loaders and needs to be serializable
session |
org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheSessionsLoaderで実装されています。
void org.keycloak.models.sessions.infinispan.initializer.SessionLoader< LOADER_CONTEXT extends SessionLoader.LoaderContext >.init | ( | KeycloakSession | session | ) |
Will be triggered just once on cluster coordinator node to perform some generic initialization tasks (Eg. update DB before starting load).
NOTE: This shouldn't be used for the initialization of loader instance itself!
session |
org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheSessionsLoaderで実装されています。
boolean org.keycloak.models.sessions.infinispan.initializer.SessionLoader< LOADER_CONTEXT extends SessionLoader.LoaderContext >.isFinished | ( | BaseCacheInitializer | initializer | ) |
This will be called on nodes to check if loading is finished. It allows loader to notify that loading is finished for some reason.
initializer |
org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheSessionsLoaderで実装されています。
boolean org.keycloak.models.sessions.infinispan.initializer.SessionLoader< LOADER_CONTEXT extends SessionLoader.LoaderContext >.loadSessions | ( | KeycloakSession | session, |
LOADER_CONTEXT | loaderContext, | ||
int | segment | ||
) |
Will be called on all cluster nodes to load the specified page.
session | |
loaderContext | loaderContext object, which was already computed before |
segment | to be computed |