Class InfinispanUserSessionProviderFactory
- java.lang.Object
- 
- org.keycloak.models.sessions.infinispan.InfinispanUserSessionProviderFactory
 
- 
- All Implemented Interfaces:
- UserSessionProviderFactory,- EnvironmentDependentProviderFactory,- ProviderFactory
 
 public class InfinispanUserSessionProviderFactory extends Object implements UserSessionProviderFactory, EnvironmentDependentProviderFactory 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCLIENT_REMOVED_SESSION_EVENTstatic StringPROVIDER_IDstatic StringREALM_REMOVED_SESSION_EVENTstatic StringREMOVE_USER_SESSIONS_EVENT
 - 
Constructor SummaryConstructors Constructor Description InfinispanUserSessionProviderFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckRemoteCaches(KeycloakSession session)voidclose()This is called when the server shuts down.InfinispanUserSessionProvidercreate(KeycloakSession session)StringgetId()voidinit(Config.Scope config)Only called once when the factory is first created.booleanisSupported()voidloadPersistentSessions(KeycloakSessionFactory sessionFactory, int maxErrors, int sessionsPerSegment)intorder()voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initializedprotected voidregisterClusterListeners(KeycloakSession session)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactoryisSupported
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata
 
- 
 
- 
- 
- 
Field Detail- 
PROVIDER_IDpublic static final String PROVIDER_ID - See Also:
- Constant Field Values
 
 - 
REALM_REMOVED_SESSION_EVENTpublic static final String REALM_REMOVED_SESSION_EVENT - See Also:
- Constant Field Values
 
 - 
CLIENT_REMOVED_SESSION_EVENTpublic static final String CLIENT_REMOVED_SESSION_EVENT - See Also:
- Constant Field Values
 
 - 
REMOVE_USER_SESSIONS_EVENTpublic static final String REMOVE_USER_SESSIONS_EVENT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createpublic InfinispanUserSessionProvider create(KeycloakSession session) - Specified by:
- createin interface- ProviderFactory
 
 - 
initpublic void init(Config.Scope config) Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
- initin interface- ProviderFactory
 
 - 
postInitpublic void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory
 
 - 
loadPersistentSessionspublic void loadPersistentSessions(KeycloakSessionFactory sessionFactory, int maxErrors, int sessionsPerSegment) - Specified by:
- loadPersistentSessionsin interface- UserSessionProviderFactory
 
 - 
registerClusterListenersprotected void registerClusterListeners(KeycloakSession session) 
 - 
checkRemoteCachesprotected void checkRemoteCaches(KeycloakSession session) 
 - 
closepublic void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- ProviderFactory
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ProviderFactory
 
 - 
orderpublic int order() - Specified by:
- orderin interface- ProviderFactory
 
 - 
isSupportedpublic boolean isSupported() - Specified by:
- isSupportedin interface- EnvironmentDependentProviderFactory
- Returns:
- trueif the provider is supported and should be available,- falseotherwise
 
 
- 
 
-