Class CrossDCLastSessionRefreshChecker
java.lang.Object
org.keycloak.models.sessions.infinispan.changes.sessions.CrossDCLastSessionRefreshChecker
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCrossDCLastSessionRefreshChecker
(CrossDCLastSessionRefreshStore store, CrossDCLastSessionRefreshStore offlineStore) -
Method Summary
Modifier and TypeMethodDescriptionshouldSaveClientSessionToRemoteCache
(KeycloakSession kcSession, RealmModel realm, SessionEntityWrapper<AuthenticatedClientSessionEntity> sessionWrapper, UserSessionModel userSession, boolean offline, int newTimestamp) shouldSaveUserSessionToRemoteCache
(KeycloakSession kcSession, RealmModel realm, SessionEntityWrapper<UserSessionEntity> sessionWrapper, boolean offline, int newLastSessionRefresh)
-
Field Details
-
logger
public static final org.jboss.logging.Logger logger
-
-
Constructor Details
-
CrossDCLastSessionRefreshChecker
public CrossDCLastSessionRefreshChecker(CrossDCLastSessionRefreshStore store, CrossDCLastSessionRefreshStore offlineStore)
-
-
Method Details
-
shouldSaveUserSessionToRemoteCache
public SessionUpdateTask.CrossDCMessageStatus shouldSaveUserSessionToRemoteCache(KeycloakSession kcSession, RealmModel realm, SessionEntityWrapper<UserSessionEntity> sessionWrapper, boolean offline, int newLastSessionRefresh) -
shouldSaveClientSessionToRemoteCache
public SessionUpdateTask.CrossDCMessageStatus shouldSaveClientSessionToRemoteCache(KeycloakSession kcSession, RealmModel realm, SessionEntityWrapper<AuthenticatedClientSessionEntity> sessionWrapper, UserSessionModel userSession, boolean offline, int newTimestamp)
-