Interface InfinispanConnectionProvider
- All Superinterfaces:
- Provider
- All Known Implementing Classes:
- DefaultInfinispanConnectionProvider,- RemoteInfinispanConnectionProvider
- Author:
- Stian Thorgersen
- 
Field SummaryFieldsModifier 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 String[]static 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 String[]static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final intstatic final String[]static final Stringstatic final intstatic final Stringstatic final Stringstatic final String
- 
Method SummaryModifier 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_MAXstatic final int REALM_REVISIONS_CACHE_DEFAULT_MAX- See Also:
 
- 
USER_CACHE_NAME- See Also:
 
- 
USER_REVISIONS_CACHE_NAME- See Also:
 
- 
USER_REVISIONS_CACHE_DEFAULT_MAXstatic 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_MAXstatic final int AUTHORIZATION_REVISIONS_CACHE_DEFAULT_MAX- See Also:
 
- 
SESSIONS_CACHE_DEFAULT_MAXstatic final int SESSIONS_CACHE_DEFAULT_MAX- See Also:
 
- 
ACTION_TOKEN_CACHE- See Also:
 
- 
ACTION_TOKEN_CACHE_DEFAULT_MAXstatic final int ACTION_TOKEN_CACHE_DEFAULT_MAX- See Also:
 
- 
ACTION_TOKEN_MAX_IDLE_SECONDSstatic final int ACTION_TOKEN_MAX_IDLE_SECONDS- See Also:
 
- 
ACTION_TOKEN_WAKE_UP_INTERVAL_SECONDSstatic final long ACTION_TOKEN_WAKE_UP_INTERVAL_SECONDS- See Also:
 
- 
KEYS_CACHE_NAME- See Also:
 
- 
KEYS_CACHE_DEFAULT_MAXstatic final int KEYS_CACHE_DEFAULT_MAX- See Also:
 
- 
KEYS_CACHE_MAX_IDLE_SECONDSstatic final int KEYS_CACHE_MAX_IDLE_SECONDS- See Also:
 
- 
CRL_CACHE_NAME- See Also:
 
- 
CRL_CACHE_DEFAULT_MAXstatic 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
- 
LOCAL_MAX_COUNT_CACHES
- 
CLUSTERED_MAX_COUNT_CACHES
- 
CLUSTERED_CACHE_NUM_OWNERS
 
- 
- 
Method Details- 
getCacheEffectively the same asgetCache(String, boolean)with createIfAbsent set totrue
- 
getCacheProvides an instance if Infinispan cache by name- Type Parameters:
- K- key type
- V- value type
- Parameters:
- name- name of the requested cache
- createIfAbsent- if true the connection provider will create the requested cache on method call if it does not exist
- Returns:
- return a cache instance
 
- 
getRemoteCacheGet 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)
- 
getTopologyInfoTopologyInfo getTopologyInfo()- Returns:
- Information about cluster topology
 
- 
migrateToProtoStreamCompletionStage<Void> migrateToProtoStream()Migrates the JBoss Marshalling encoding to Infinispan ProtoStream- Returns:
- A CompletionStageto signal when the operator is completed.
 
- 
getExecutorReturns 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.
 
- 
getScheduledExecutorScheduledExecutorService getScheduledExecutor()- Returns:
- The Infinispan ScheduledExecutorService. Long or blocking operations must not be executed directly.
 
- 
getRemoteCachestatic <K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getRemoteCache(KeycloakSessionFactory factory, String cacheName) Syntactic sugar to get aRemoteCache.- See Also:
 
- 
getBlockingManagerorg.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
 
-