public class LoadBalancerConfig extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_RECONNECTION_ATTEMPTS |
static int |
DEFAULT_TOPOLOGY_UPDATE_DELAY |
Constructor and Description |
---|
LoadBalancerConfig() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllowedTiers()
Get the set of allowed tier names for filtering out nodes for connection.
|
Set<String> |
getForbiddenTiers()
Get the set of forbidden tier names for filtering out nodes for connection.
|
int |
getMaxReconnectionAttempts()
Get the maximum number of reconnection attempts while receiving topology updates.
|
LoadBalancerNodesSelectionStrategy |
getNodesSelectionStrategy()
Get the connection address selection strategy.
|
int |
getTopologyUpdateDelay()
Get the delay for receiving topology updates in milliseconds.
|
void |
setAllowedTiers(Set<String> allowedTiers)
Set the allowed node tier names for creating connections with.
|
void |
setForbiddenTiers(Set<String> forbiddenTiers)
Set the forbidden node tier names for creating connections with.
|
void |
setMaxReconnectionAttempts(int maxReconnectionAttempts)
Set the maximum number of reconnection attempts while receiving topology updates.
|
void |
setNodesSelectionStrategy(LoadBalancerNodesSelectionStrategy strategy)
Set the connection address selection strategy to use.
|
void |
setTopologyUpdateDelay(int topologyUpdateDelay)
Set the delay for receiving topology updates in milliseconds.
|
public static final int DEFAULT_TOPOLOGY_UPDATE_DELAY
public static final int DEFAULT_MAX_RECONNECTION_ATTEMPTS
public void setTopologyUpdateDelay(int topologyUpdateDelay)
topologyUpdateDelay
- delay in millisecondspublic int getTopologyUpdateDelay()
public void setMaxReconnectionAttempts(int maxReconnectionAttempts)
maxReconnectionAttempts
- maximum number of reconnection attemptspublic int getMaxReconnectionAttempts()
public void setNodesSelectionStrategy(LoadBalancerNodesSelectionStrategy strategy)
strategy
- connection address selection strategypublic LoadBalancerNodesSelectionStrategy getNodesSelectionStrategy()
public void setAllowedTiers(Set<String> allowedTiers)
allowedTiers
- set of allowed tier namespublic Set<String> getAllowedTiers()
public void setForbiddenTiers(Set<String> forbiddenTiers)
forbiddenTiers
- set of forbidden tier namesCopyright © 2025 Picodata. All rights reserved.