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(org.keycloak.models.KeycloakSession session, CacheHolder<EmbeddedClientSessionKey, AuthenticatedClientSessionEntity> cacheHolder, CacheHolder<EmbeddedClientSessionKey, AuthenticatedClientSessionEntity> offlineCacheHolder, UserSessionPersistentChangelogBasedTransaction userSessionTx, boolean pessimisticLockingAuthenticationSession) -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthenticatedClientSessionInstance(String userSessionId, String userId, org.keycloak.models.AuthenticatedClientSessionModel clientSession, String realmId, String clientId, boolean offline) get(org.keycloak.models.RealmModel realm, org.keycloak.models.ClientModel client, org.keycloak.models.UserSessionModel userSession, EmbeddedClientSessionKey key, boolean offline) protected booleanlockDatabaseEntity(org.keycloak.models.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(org.keycloak.models.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(org.keycloak.models.RealmModel realm, org.keycloak.models.ClientModel client, org.keycloak.models.UserSessionModel userSession, EmbeddedClientSessionKey key, boolean offline) -
lockDatabaseEntity
protected boolean lockDatabaseEntity(org.keycloak.models.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, org.keycloak.models.AuthenticatedClientSessionModel clientSession, String realmId, String clientId, boolean offline)
-