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
  • Field Details

  • 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:
      getClusterStartupTime in interface org.keycloak.cluster.ClusterProvider
    • close

      public void close()
      Specified by:
      close in interface org.keycloak.provider.Provider
    • executeIfNotExecuted

      public <T> org.keycloak.cluster.ExecutionResult<T> executeIfNotExecuted(String taskKey, int taskTimeoutInSeconds, Callable<T> task)
      Specified by:
      executeIfNotExecuted in interface org.keycloak.cluster.ClusterProvider
    • executeIfNotExecutedAsync

      public Future<Boolean> executeIfNotExecutedAsync(String taskKey, int taskTimeoutInSeconds, Callable task)
      Specified by:
      executeIfNotExecutedAsync in interface org.keycloak.cluster.ClusterProvider
    • registerListener

      public void registerListener(String taskKey, org.keycloak.cluster.ClusterListener task)
      Specified by:
      registerListener in interface org.keycloak.cluster.ClusterProvider
    • notify

      public void notify(String taskKey, org.keycloak.cluster.ClusterEvent event, boolean ignoreSender, org.keycloak.cluster.ClusterProvider.DCNotify dcNotify)
      Specified by:
      notify in interface org.keycloak.cluster.ClusterProvider
    • notify

      public void notify(String taskKey, Collection<? extends org.keycloak.cluster.ClusterEvent> events, boolean ignoreSender)
      Specified by:
      notify in interface org.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:
      notify in interface org.keycloak.cluster.ClusterProvider