Class RedisClusterProperties
java.lang.Object
org.apereo.cas.configuration.model.support.redis.RedisClusterProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-support-redis-core")
public class RedisClusterProperties
extends Object
implements Serializable
This is
RedisClusterProperties
.- Since:
- 6.3.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
The max number of redirects to follow.getNodes()
List of nodes available in the redis cluster.The cluster connection's password.Enables periodic refresh of cluster topology and sets the refresh period.The cluster connection's username.boolean
Whether adaptive topology refreshing using all available refresh triggers should be used.boolean
Whether to discover and query all cluster nodes for obtaining the cluster topology.setAdaptiveTopologyRefresh
(boolean adaptiveTopologyRefresh) Whether adaptive topology refreshing using all available refresh triggers should be used.setDynamicRefreshSources
(boolean dynamicRefreshSources) Whether to discover and query all cluster nodes for obtaining the cluster topology.setMaxRedirects
(int maxRedirects) The max number of redirects to follow.setNodes
(List<RedisClusterNodeProperties> nodes) List of nodes available in the redis cluster.setPassword
(String password) The cluster connection's password.setTopologyRefreshPeriod
(String topologyRefreshPeriod) Enables periodic refresh of cluster topology and sets the refresh period.setUsername
(String username) The cluster connection's username.
-
Constructor Details
-
RedisClusterProperties
public RedisClusterProperties()
-
-
Method Details
-
getNodes
List of nodes available in the redis cluster. -
getUsername
The cluster connection's username. -
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
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
The cluster connection's username.- Returns:
this
.
-
setPassword
The cluster connection's password.- Returns:
this
.
-
setMaxRedirects
The max number of redirects to follow.- Returns:
this
.
-
setDynamicRefreshSources
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
Enables periodic refresh of cluster topology and sets the refresh period.- Returns:
this
.
-
setAdaptiveTopologyRefresh
Whether adaptive topology refreshing using all available refresh triggers should be used.- Returns:
this
.
-