Class ClientSessionPersistentChangelogBasedTransaction
java.lang.Object
org.keycloak.models.sessions.infinispan.changes.PersistentSessionsChangelogBasedTransaction<EmbeddedClientSessionKey,AuthenticatedClientSessionEntity>
org.keycloak.models.sessions.infinispan.changes.ClientSessionPersistentChangelogBasedTransaction
- All Implemented Interfaces:
SessionsChangelogBasedTransaction<EmbeddedClientSessionKey,,AuthenticatedClientSessionEntity> NonBlockingTransaction
public class ClientSessionPersistentChangelogBasedTransaction
extends PersistentSessionsChangelogBasedTransaction<EmbeddedClientSessionKey,AuthenticatedClientSessionEntity>
-
Field Summary
Fields inherited from class org.keycloak.models.sessions.infinispan.changes.PersistentSessionsChangelogBasedTransaction
kcSession, offlineUpdates, updates -
Constructor Summary
ConstructorsConstructorDescriptionClientSessionPersistentChangelogBasedTransaction(KeycloakSession session, CacheHolder<EmbeddedClientSessionKey, AuthenticatedClientSessionEntity> cacheHolder, CacheHolder<EmbeddedClientSessionKey, AuthenticatedClientSessionEntity> offlineCacheHolder, UserSessionPersistentChangelogBasedTransaction userSessionTx, boolean pessimisticLockingAuthenticationSession) -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthenticatedClientSessionInstance(String userSessionId, String userId, AuthenticatedClientSessionModel clientSession, String realmId, String clientId, boolean offline) get(RealmModel realm, ClientModel client, UserSessionModel userSession, EmbeddedClientSessionKey key, boolean offline) protected booleanlockDatabaseEntity(RealmModel realm, EmbeddedClientSessionKey clientSessionKey, boolean offline, SessionUpdateTask.CacheOperation operation) Lock the entity in the database.voidsetUserSessionId(Collection<EmbeddedClientSessionKey> keys, String userSessionId, boolean offline) Methods inherited from class org.keycloak.models.sessions.infinispan.changes.PersistentSessionsChangelogBasedTransaction
addTask, addTask, asyncCommit, asyncRollback, generateKey, get, getCache, getLifespanMsLoader, getMaxIdleMsLoader, getUpdates, importSession, importSessionsConcurrently, lockDatabaseEntities, reloadEntityInCurrentTransaction, restartEntity, supportsLockingDatabaseEntities
-
Constructor Details
-
ClientSessionPersistentChangelogBasedTransaction
public ClientSessionPersistentChangelogBasedTransaction(KeycloakSession session, CacheHolder<EmbeddedClientSessionKey, AuthenticatedClientSessionEntity> cacheHolder, CacheHolder<EmbeddedClientSessionKey, AuthenticatedClientSessionEntity> offlineCacheHolder, UserSessionPersistentChangelogBasedTransaction userSessionTx, boolean pessimisticLockingAuthenticationSession)
-
-
Method Details
-
setUserSessionId
public void setUserSessionId(Collection<EmbeddedClientSessionKey> keys, String userSessionId, boolean offline) -
get
public SessionEntityWrapper<AuthenticatedClientSessionEntity> get(RealmModel realm, ClientModel client, UserSessionModel userSession, EmbeddedClientSessionKey key, boolean offline) -
lockDatabaseEntity
protected boolean lockDatabaseEntity(RealmModel realm, EmbeddedClientSessionKey clientSessionKey, boolean offline, SessionUpdateTask.CacheOperation operation) Description copied from class:PersistentSessionsChangelogBasedTransactionLock the entity in the database. -
createAuthenticatedClientSessionInstance
public static AuthenticatedClientSessionEntity createAuthenticatedClientSessionInstance(String userSessionId, String userId, AuthenticatedClientSessionModel clientSession, String realmId, String clientId, boolean offline)
-