Class RedisClusterProperties

java.lang.Object
org.apereo.cas.configuration.model.support.redis.RedisClusterProperties
All Implemented Interfaces:
Serializable, CasFeatureModule

@RequiresModule(name="cas-server-support-redis-core") public class RedisClusterProperties extends Object implements CasFeatureModule, Serializable
Since:
6.3.0
See Also:
  • Constructor Details

    • RedisClusterProperties

      public RedisClusterProperties()
  • Method Details

    • getNodes

      public List<RedisClusterNodeProperties> getNodes()
      List of nodes available in the redis cluster.
    • getUsername

      public String getUsername()
      The cluster connection's username.
    • getPassword

      public String getPassword()
      The cluster connection's password.
    • getMaxRedirects

      public int getMaxRedirects()
      The max number of redirects to follow.
    • isDynamicRefreshSources

      public boolean isDynamicRefreshSources()
      Whether to discover and query all cluster nodes for obtaining the cluster topology. When set to false, only the initial seed nodes are used as sources for topology discovery.
    • getTopologyRefreshPeriod

      public String getTopologyRefreshPeriod()
      Enables periodic refresh of cluster topology and sets the refresh period.
    • isAdaptiveTopologyRefresh

      public boolean isAdaptiveTopologyRefresh()
      Whether adaptive topology refreshing using all available refresh triggers should be used.
    • setNodes

      List of nodes available in the redis cluster.
      Returns:
      this.
    • setUsername

      public RedisClusterProperties setUsername(String username)
      The cluster connection's username.
      Returns:
      this.
    • setPassword

      public RedisClusterProperties setPassword(String password)
      The cluster connection's password.
      Returns:
      this.
    • setMaxRedirects

      public RedisClusterProperties setMaxRedirects(int maxRedirects)
      The max number of redirects to follow.
      Returns:
      this.
    • setDynamicRefreshSources

      public RedisClusterProperties setDynamicRefreshSources(boolean dynamicRefreshSources)
      Whether to discover and query all cluster nodes for obtaining the cluster topology. When set to false, only the initial seed nodes are used as sources for topology discovery.
      Returns:
      this.
    • setTopologyRefreshPeriod

      public RedisClusterProperties setTopologyRefreshPeriod(String topologyRefreshPeriod)
      Enables periodic refresh of cluster topology and sets the refresh period.
      Returns:
      this.
    • setAdaptiveTopologyRefresh

      public RedisClusterProperties setAdaptiveTopologyRefresh(boolean adaptiveTopologyRefresh)
      Whether adaptive topology refreshing using all available refresh triggers should be used.
      Returns:
      this.