public class DefaultInfinispanConnectionProviderFactory extends Object implements InfinispanConnectionProviderFactory
| Modifier and Type | Field and Description |
|---|---|
protected org.infinispan.manager.EmbeddedCacheManager |
cacheManager |
protected Config.Scope |
config |
protected boolean |
containerManaged |
static org.infinispan.commons.time.TimeService |
KEYCLOAK_TIME_SERVICE |
protected static org.jboss.logging.Logger |
logger |
protected RemoteCacheProvider |
remoteCacheProvider |
| Constructor and Description |
|---|
DefaultInfinispanConnectionProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This is called when the server shuts down.
|
protected void |
configureTransport(org.infinispan.configuration.global.GlobalConfigurationBuilder gcb,
String nodeName,
String siteName,
String jgroupsUdpMcastAddr) |
InfinispanConnectionProvider |
create(KeycloakSession session) |
String |
getId() |
protected org.infinispan.configuration.cache.Configuration |
getKeysCacheConfig() |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
protected void |
initContainerManaged(org.infinispan.manager.EmbeddedCacheManager cacheManager) |
protected void |
initEmbedded() |
protected void |
lazyInit() |
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
static Runnable |
setTimeServiceToKeycloakTime(org.infinispan.manager.EmbeddedCacheManager cacheManager)
Replaces the
TimeService in infinispan with the one that respects Keycloak Time. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitorderprotected static final org.jboss.logging.Logger logger
protected Config.Scope config
protected org.infinispan.manager.EmbeddedCacheManager cacheManager
protected RemoteCacheProvider remoteCacheProvider
protected boolean containerManaged
public static final org.infinispan.commons.time.TimeService KEYCLOAK_TIME_SERVICE
public DefaultInfinispanConnectionProviderFactory()
public InfinispanConnectionProvider create(KeycloakSession session)
create in interface ProviderFactory<InfinispanConnectionProvider>public void close()
ProviderFactoryclose in interface ProviderFactory<InfinispanConnectionProvider>public String getId()
getId in interface ProviderFactory<InfinispanConnectionProvider>public void init(Config.Scope config)
ProviderFactoryinit in interface ProviderFactory<InfinispanConnectionProvider>public void postInit(KeycloakSessionFactory factory)
ProviderFactorypostInit in interface ProviderFactory<InfinispanConnectionProvider>protected void lazyInit()
protected void initContainerManaged(org.infinispan.manager.EmbeddedCacheManager cacheManager)
protected void initEmbedded()
public static Runnable setTimeServiceToKeycloakTime(org.infinispan.manager.EmbeddedCacheManager cacheManager)
TimeService in infinispan with the one that respects Keycloak Time.cacheManager - protected org.infinispan.configuration.cache.Configuration getKeysCacheConfig()
Copyright © 2021 JBoss by Red Hat. All rights reserved.