Interface InfinispanConnectionProvider
- All Superinterfaces:
 Provider
- All Known Implementing Classes:
 DefaultInfinispanConnectionProvider,RemoteInfinispanConnectionProvider
- Author:
 - Stian Thorgersen
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final longstatic final String[]static final Stringstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final String[]static final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final Stringstatic final String[]static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final String[]static final Stringstatic final intstatic final Stringstatic final Stringstatic final String - 
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.util.concurrent.BlockingManagerReturns the InfinispanBlockingManager.default <K,V> org.infinispan.Cache<K, V> Effectively the same asgetCache(String, boolean)with createIfAbsent set totrue<K,V> org.infinispan.Cache<K, V> Provides an instance if Infinispan cache by namedefault ExecutorgetExecutor(String name) Returns an executor that will run the given tasks on a blocking thread as required.<K,V> org.infinispan.client.hotrod.RemoteCache<K, V> getRemoteCache(String name) Get remote cache of given name.static <K,V> org.infinispan.client.hotrod.RemoteCache<K, V> getRemoteCache(KeycloakSessionFactory factory, String cacheName) Syntactic sugar to get aRemoteCache.Migrates the JBoss Marshalling encoding to Infinispan ProtoStreamskipSessionsCacheIfRequired(Stream<String> caches)  
- 
Field Details
- 
REALM_CACHE_NAME
- See Also:
 
 - 
REALM_REVISIONS_CACHE_NAME
- See Also:
 
 - 
REALM_REVISIONS_CACHE_DEFAULT_MAX
static final int REALM_REVISIONS_CACHE_DEFAULT_MAX- See Also:
 
 - 
USER_CACHE_NAME
- See Also:
 
 - 
USER_REVISIONS_CACHE_NAME
- See Also:
 
 - 
USER_REVISIONS_CACHE_DEFAULT_MAX
static final int USER_REVISIONS_CACHE_DEFAULT_MAX- See Also:
 
 - 
USER_SESSION_CACHE_NAME
- See Also:
 
 - 
CLIENT_SESSION_CACHE_NAME
- See Also:
 
 - 
OFFLINE_USER_SESSION_CACHE_NAME
- See Also:
 
 - 
OFFLINE_CLIENT_SESSION_CACHE_NAME
- See Also:
 
 - 
LOGIN_FAILURE_CACHE_NAME
- See Also:
 
 - 
AUTHENTICATION_SESSIONS_CACHE_NAME
- See Also:
 
 - 
WORK_CACHE_NAME
- See Also:
 
 - 
AUTHORIZATION_CACHE_NAME
- See Also:
 
 - 
AUTHORIZATION_REVISIONS_CACHE_NAME
- See Also:
 
 - 
AUTHORIZATION_REVISIONS_CACHE_DEFAULT_MAX
static final int AUTHORIZATION_REVISIONS_CACHE_DEFAULT_MAX- See Also:
 
 - 
ACTION_TOKEN_CACHE
- See Also:
 
 - 
ACTION_TOKEN_CACHE_DEFAULT_MAX
static final int ACTION_TOKEN_CACHE_DEFAULT_MAX- See Also:
 
 - 
ACTION_TOKEN_MAX_IDLE_SECONDS
static final int ACTION_TOKEN_MAX_IDLE_SECONDS- See Also:
 
 - 
ACTION_TOKEN_WAKE_UP_INTERVAL_SECONDS
static final long ACTION_TOKEN_WAKE_UP_INTERVAL_SECONDS- See Also:
 
 - 
KEYS_CACHE_NAME
- See Also:
 
 - 
KEYS_CACHE_DEFAULT_MAX
static final int KEYS_CACHE_DEFAULT_MAX- See Also:
 
 - 
KEYS_CACHE_MAX_IDLE_SECONDS
static final int KEYS_CACHE_MAX_IDLE_SECONDS- See Also:
 
 - 
CRL_CACHE_NAME
- See Also:
 
 - 
CRL_CACHE_DEFAULT_MAX
static final int CRL_CACHE_DEFAULT_MAX- See Also:
 
 - 
JBOSS_NODE_NAME
- See Also:
 
 - 
JGROUPS_UDP_MCAST_ADDR
- See Also:
 
 - 
JGROUPS_BIND_ADDR
- See Also:
 
 - 
JBOSS_SITE_NAME
- See Also:
 
 - 
JMX_DOMAIN
- See Also:
 
 - 
NODE_PREFIX
- See Also:
 
 - 
LOCAL_CACHE_NAMES
 - 
USER_AND_CLIENT_SESSION_CACHES
 - 
CLUSTERED_CACHE_NAMES
 - 
ALL_CACHES_NAME
 
 - 
 - 
Method Details
- 
getCache
Effectively the same asgetCache(String, boolean)with createIfAbsent set totrue - 
getCache
Provides an instance if Infinispan cache by name- Type Parameters:
 K- key typeV- value type- Parameters:
 name- name of the requested cachecreateIfAbsent- if true the connection provider will create the requested cache on method call if it does not exist- Returns:
 - return a cache instance
 
 - 
getRemoteCache
Get remote cache of given name. Could just retrieve the remote cache from the remoteStore configured in given infinispan cache and/or alternatively return the secured remoteCache (remoteCache corresponding to secured hotrod endpoint) - 
getTopologyInfo
TopologyInfo getTopologyInfo()- Returns:
 - Information about cluster topology
 
 - 
migrateToProtoStream
CompletionStage<Void> migrateToProtoStream()Migrates the JBoss Marshalling encoding to Infinispan ProtoStream- Returns:
 - A 
CompletionStageto signal when the operator is completed. 
 - 
getExecutor
Returns an executor that will run the given tasks on a blocking thread as required.The Infinispan block
Executoris used to execute blocking operation, like I/O. If Virtual Threads are enabled, this will be an executor with Virtual Threads.- Parameters:
 name- The name for trace logging purpose.- Returns:
 - The Infinispan blocking 
Executor. 
 - 
getScheduledExecutor
ScheduledExecutorService getScheduledExecutor()- Returns:
 - The Infinispan 
ScheduledExecutorService. Long or blocking operations must not be executed directly. 
 - 
getRemoteCache
static <K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getRemoteCache(KeycloakSessionFactory factory, String cacheName) Syntactic sugar to get aRemoteCache.- See Also:
 
 - 
getBlockingManager
org.infinispan.util.concurrent.BlockingManager getBlockingManager()Returns the InfinispanBlockingManager.The
BlockingManagershould be used to execute blocking operation like disk I/O. It offloads the task to the Infinispan blocking thread pool.- Returns:
 - The Infinispan 
BlockingManager. 
 - 
skipSessionsCacheIfRequired
 
 -