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() |
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) |
protected void |
initContainerManaged(org.infinispan.manager.EmbeddedCacheManager cacheManager) |
protected void |
initEmbedded() |
protected void |
lazyInit() |
void |
postInit(KeycloakSessionFactory factory) |
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, wait
order
protected 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()
close
in interface ProviderFactory<InfinispanConnectionProvider>
public String getId()
getId
in interface ProviderFactory<InfinispanConnectionProvider>
public void init(Config.Scope config)
init
in interface ProviderFactory<InfinispanConnectionProvider>
public void postInit(KeycloakSessionFactory factory)
postInit
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.