Package org.keycloak.cluster.infinispan
Class InfinispanClusterProvider
java.lang.Object
org.keycloak.cluster.infinispan.InfinispanClusterProvider
- All Implemented Interfaces:
org.keycloak.cluster.ClusterProvider,org.keycloak.provider.Provider
public class InfinispanClusterProvider
extends Object
implements org.keycloak.cluster.ClusterProvider
- Author:
- Marek Posolda
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.keycloak.cluster.ClusterProvider
org.keycloak.cluster.ClusterProvider.DCNotify -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInfinispanClusterProvider(int clusterStartupTime, NodeInfo nodeInfo, org.infinispan.Cache<String, Object> workCache, ExecutorService localExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> org.keycloak.cluster.ExecutionResult<T>executeIfNotExecuted(String taskKey, int taskTimeoutInSeconds, Callable<T> task) executeIfNotExecutedAsync(String taskKey, int taskTimeoutInSeconds, Callable task) intvoidnotify(String taskKey, Collection<? extends org.keycloak.cluster.ClusterEvent> events, boolean ignoreSender) voidnotify(String taskKey, Collection<? extends org.keycloak.cluster.ClusterEvent> events, boolean ignoreSender, org.keycloak.cluster.ClusterProvider.DCNotify dcNotify) voidnotify(String taskKey, org.keycloak.cluster.ClusterEvent event, boolean ignoreSender, org.keycloak.cluster.ClusterProvider.DCNotify dcNotify) voidregisterListener(String taskKey, org.keycloak.cluster.ClusterListener task) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.cluster.ClusterProvider
isPrimaryCluster, isPrimaryClusterSupported, notify
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
CLUSTER_STARTUP_TIME_KEY
- See Also:
-
TASK_KEY_PREFIX
- See Also:
-
-
Constructor Details
-
InfinispanClusterProvider
public InfinispanClusterProvider(int clusterStartupTime, NodeInfo nodeInfo, org.infinispan.Cache<String, Object> workCache, ExecutorService localExecutor)
-
-
Method Details
-
getClusterStartupTime
public int getClusterStartupTime()- Specified by:
getClusterStartupTimein interfaceorg.keycloak.cluster.ClusterProvider
-
close
public void close()- Specified by:
closein interfaceorg.keycloak.provider.Provider
-
executeIfNotExecuted
public <T> org.keycloak.cluster.ExecutionResult<T> executeIfNotExecuted(String taskKey, int taskTimeoutInSeconds, Callable<T> task) - Specified by:
executeIfNotExecutedin interfaceorg.keycloak.cluster.ClusterProvider
-
executeIfNotExecutedAsync
public Future<Boolean> executeIfNotExecutedAsync(String taskKey, int taskTimeoutInSeconds, Callable task) - Specified by:
executeIfNotExecutedAsyncin interfaceorg.keycloak.cluster.ClusterProvider
-
registerListener
- Specified by:
registerListenerin interfaceorg.keycloak.cluster.ClusterProvider
-
notify
public void notify(String taskKey, org.keycloak.cluster.ClusterEvent event, boolean ignoreSender, org.keycloak.cluster.ClusterProvider.DCNotify dcNotify) - Specified by:
notifyin interfaceorg.keycloak.cluster.ClusterProvider
-
notify
public void notify(String taskKey, Collection<? extends org.keycloak.cluster.ClusterEvent> events, boolean ignoreSender) - Specified by:
notifyin interfaceorg.keycloak.cluster.ClusterProvider
-
notify
public void notify(String taskKey, Collection<? extends org.keycloak.cluster.ClusterEvent> events, boolean ignoreSender, org.keycloak.cluster.ClusterProvider.DCNotify dcNotify) - Specified by:
notifyin interfaceorg.keycloak.cluster.ClusterProvider
-