Class AuthenticationSessionTransaction
java.lang.Object
org.keycloak.models.AbstractKeycloakTransaction
org.keycloak.models.sessions.infinispan.remote.transaction.AuthenticationSessionTransaction
- All Implemented Interfaces:
KeycloakTransaction
Syntactic sugar for
{@code RemoteInfinispanKeycloakTransaction<String, RootAuthenticationSessionEntity,
ByRealmIdQueryConditionalRemover<String, RootAuthenticationSessionEntity>>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.keycloak.models.AbstractKeycloakTransaction
AbstractKeycloakTransaction.TransactionState
-
Field Summary
Fields inherited from class org.keycloak.models.AbstractKeycloakTransaction
state
-
Constructor Summary
ConstructorDescriptionAuthenticationSessionTransaction
(org.infinispan.client.hotrod.RemoteCache<String, RootAuthenticationSessionEntity> cache, ByRealmIdQueryConditionalRemover<String, RootAuthenticationSessionEntity> conditionalRemover) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
org.infinispan.client.hotrod.RemoteCache<String,
RootAuthenticationSessionEntity> getCache()
void
put
(String key, RootAuthenticationSessionEntity value, long lifespan, TimeUnit timeUnit) void
void
removeByRealmId
(String realmId) void
replace
(String key, RootAuthenticationSessionEntity value, int lifespan, TimeUnit timeUnit) protected void
Methods inherited from class org.keycloak.models.AbstractKeycloakTransaction
begin, beginImpl, commit, getRollbackOnly, getState, isActive, rollback, setRollbackOnly
-
Constructor Details
-
AuthenticationSessionTransaction
public AuthenticationSessionTransaction(org.infinispan.client.hotrod.RemoteCache<String, RootAuthenticationSessionEntity> cache, ByRealmIdQueryConditionalRemover<String, RootAuthenticationSessionEntity> conditionalRemover)
-
-
Method Details
-
removeByRealmId
-
commitImpl
protected void commitImpl()- Specified by:
commitImpl
in classAbstractKeycloakTransaction
-
rollbackImpl
protected void rollbackImpl()- Specified by:
rollbackImpl
in classAbstractKeycloakTransaction
-
put
public void put(String key, RootAuthenticationSessionEntity value, long lifespan, TimeUnit timeUnit) -
replace
public void replace(String key, RootAuthenticationSessionEntity value, int lifespan, TimeUnit timeUnit) -
remove
-
get
-
getCache
-