Class InfinispanUtil
java.lang.Object
org.keycloak.connections.infinispan.InfinispanUtil
- Author:
- Marek Posolda
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.infinispan.commons.time.TimeService
protected static final org.jboss.logging.Logger
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
configureTransport
(org.infinispan.configuration.global.GlobalConfigurationBuilder gcb, String nodeName, String siteName, String jgroupsUdpMcastAddr, String jgroupsBindAddr, String jgroupsConfigPath) Deprecated, for removal: This API element is subject to removal in a future version.to be removed without replacement.static org.infinispan.configuration.cache.ConfigurationBuilder
Deprecated, for removal: This API element is subject to removal in a future version.to be removed.static org.infinispan.configuration.cache.ConfigurationBuilder
Deprecated, for removal: This API element is subject to removal in a future version.to be removed without replacement.static org.infinispan.configuration.cache.ConfigurationBuilder
Deprecated, for removal: This API element is subject to removal in a future version.to be removed.static org.infinispan.configuration.cache.ConfigurationBuilder
getRevisionCacheConfig
(long maxEntries) Deprecated, for removal: This API element is subject to removal in a future version.to be removed.static TopologyInfo
getTopologyInfo
(KeycloakSession session) static Runnable
setTimeServiceToKeycloakTime
(org.infinispan.manager.EmbeddedCacheManager cacheManager) Replaces theTimeService
in infinispan with the one that respects KeycloakTime
.
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
MAXIMUM_REPLACE_RETRIES
public static final int MAXIMUM_REPLACE_RETRIES- See Also:
-
KEYCLOAK_TIME_SERVICE
public static final org.infinispan.commons.time.TimeService KEYCLOAK_TIME_SERVICE
-
-
Constructor Details
-
InfinispanUtil
public InfinispanUtil()
-
-
Method Details
-
getTopologyInfo
-
configureTransport
@Deprecated(since="26.3", forRemoval=true) public static void configureTransport(org.infinispan.configuration.global.GlobalConfigurationBuilder gcb, String nodeName, String siteName, String jgroupsUdpMcastAddr, String jgroupsBindAddr, String jgroupsConfigPath) Deprecated, for removal: This API element is subject to removal in a future version.to be removed without replacement. -
createCacheConfigurationBuilder
@Deprecated(since="26.3", forRemoval=true) public static org.infinispan.configuration.cache.ConfigurationBuilder createCacheConfigurationBuilder()Deprecated, for removal: This API element is subject to removal in a future version.to be removed. UseCacheConfigurator.createCacheConfigurationBuilder()
. -
getActionTokenCacheConfig
@Deprecated(since="26.3", forRemoval=true) public static org.infinispan.configuration.cache.ConfigurationBuilder getActionTokenCacheConfig()Deprecated, for removal: This API element is subject to removal in a future version.to be removed without replacement. -
getCrlCacheConfig
@Deprecated(since="26.3", forRemoval=true) public static org.infinispan.configuration.cache.ConfigurationBuilder getCrlCacheConfig()Deprecated, for removal: This API element is subject to removal in a future version.to be removed. UseCacheConfigurator.getCrlCacheConfig()
. -
getRevisionCacheConfig
@Deprecated(since="26.3", forRemoval=true) public static org.infinispan.configuration.cache.ConfigurationBuilder getRevisionCacheConfig(long maxEntries) Deprecated, for removal: This API element is subject to removal in a future version.to be removed. UseCacheConfigurator.getRevisionCacheConfig(long)
. -
setTimeServiceToKeycloakTime
public static Runnable setTimeServiceToKeycloakTime(org.infinispan.manager.EmbeddedCacheManager cacheManager) Replaces theTimeService
in infinispan with the one that respects KeycloakTime
.- Parameters:
cacheManager
- TheEmbeddedCacheManager
to inject the KeycloakTime
.- Returns:
- Runnable to revert replacement of the infinispan time service
-