Class RemoteInfinispanAuthenticationSessionProviderFactory
java.lang.Object
org.keycloak.models.sessions.infinispan.remote.RemoteInfinispanAuthenticationSessionProviderFactory
- All Implemented Interfaces:
UpdaterFactory<String,,RootAuthenticationSessionEntity, RootAuthenticationSessionUpdater> RemoteChangeLogTransaction.SharedState<String,,RootAuthenticationSessionEntity> EnvironmentDependentProviderFactory,ProviderFactory<RemoteInfinispanAuthenticationSessionProvider>,ServerInfoAwareProviderFactory,AuthenticationSessionProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
public class RemoteInfinispanAuthenticationSessionProviderFactory
extends Object
implements AuthenticationSessionProviderFactory<RemoteInfinispanAuthenticationSessionProvider>, UpdaterFactory<String,RootAuthenticationSessionEntity,RootAuthenticationSessionUpdater>, EnvironmentDependentProviderFactory, RemoteChangeLogTransaction.SharedState<String,RootAuthenticationSessionEntity>, ServerInfoAwareProviderFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintorg.infinispan.util.concurrent.BlockingManagerorg.infinispan.client.hotrod.RemoteCache<String,RootAuthenticationSessionEntity> cache()voidclose()create(String key, RootAuthenticationSessionEntity entity) Creates anUpdaterfor an entity created by the current Keycloak transaction.create(KeycloakSession session) Deletes a entity that was not previous read by the Keycloak transaction.getId()voidinit(Config.Scope config) booleanisSupported(Config.Scope config) intintorder()voidpostInit(KeycloakSessionFactory factory) wrapFromCache(String key, RootAuthenticationSessionEntity value, long version) Wraps an entity read from the Infinispan cache.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.sessions.infinispan.changes.remote.updater.UpdaterFactory
wrapFromCache
-
Field Details
-
PROTO_ENTITY
-
-
Constructor Details
-
RemoteInfinispanAuthenticationSessionProviderFactory
public RemoteInfinispanAuthenticationSessionProviderFactory()
-
-
Method Details
-
isSupported
- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory
-
create
- Specified by:
createin interfaceProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
init
- Specified by:
initin interfaceProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
postInit
- Specified by:
postInitin interfaceProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
close
public void close()- Specified by:
closein interfaceProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
getConfigMetadata
- Specified by:
getConfigMetadatain interfaceProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
getOperationalInfo
- Specified by:
getOperationalInfoin interfaceServerInfoAwareProviderFactory
-
create
Description copied from interface:UpdaterFactoryCreates anUpdaterfor an entity created by the current Keycloak transaction.- Specified by:
createin interfaceUpdaterFactory<String,RootAuthenticationSessionEntity, RootAuthenticationSessionUpdater> - Parameters:
key- The Infinispan key.entity- The Infinispan value.- Returns:
- The
Updaterto be used when updating the entity state.
-
wrapFromCache
public RootAuthenticationSessionUpdater wrapFromCache(String key, RootAuthenticationSessionEntity value, long version) Description copied from interface:UpdaterFactoryWraps an entity read from the Infinispan cache.- Specified by:
wrapFromCachein interfaceUpdaterFactory<String,RootAuthenticationSessionEntity, RootAuthenticationSessionUpdater> - Parameters:
key- The Infinispan key.value- The Infinispan value.version- The entry version.- Returns:
- The
Updaterto be used when updating the entity state.
-
deleted
Description copied from interface:UpdaterFactoryDeletes a entity that was not previous read by the Keycloak transaction.- Specified by:
deletedin interfaceUpdaterFactory<String,RootAuthenticationSessionEntity, RootAuthenticationSessionUpdater> - Parameters:
key- The Infinispan key.- Returns:
- The
Updaterfor a deleted entity.
-
cache
- Specified by:
cachein interfaceRemoteChangeLogTransaction.SharedState<String,RootAuthenticationSessionEntity>
-
getId
- Specified by:
getIdin interfaceProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
order
public int order()- Specified by:
orderin interfaceProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
dependsOn
- Specified by:
dependsOnin interfaceProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
maxRetries
public int maxRetries()- Specified by:
maxRetriesin interfaceRemoteChangeLogTransaction.SharedState<String,RootAuthenticationSessionEntity>
-
backOffBaseTimeMillis
public int backOffBaseTimeMillis()- Specified by:
backOffBaseTimeMillisin interfaceRemoteChangeLogTransaction.SharedState<String,RootAuthenticationSessionEntity>
-
blockingManager
public org.infinispan.util.concurrent.BlockingManager blockingManager()- Specified by:
blockingManagerin interfaceRemoteChangeLogTransaction.SharedState<String,RootAuthenticationSessionEntity>
-