public final class AccessibleRegions
extends java.lang.Object
PropertyDefinition.GDB_ACCESSIBLE_REGIONS configuration parameter.
The parameter value is a comma-separated list of AWS region names (e.g. us-east-1,us-west-2).
This class normalizes the value into a Set<String> of trimmed, lowercased region names, returning
null when the parameter is unset or empty (meaning "no restriction — all regions are accessible").
Centralizing this logic keeps parsing rules consistent across all consumers (failover, read/write splitting, topology monitor, initial connection strategy).
| Modifier and Type | Method and Description |
|---|---|
static @Nullable java.util.Set<java.lang.String> |
parse(java.util.Properties properties)
Parses
PropertyDefinition.GDB_ACCESSIBLE_REGIONS from the given properties. |
public static @Nullable java.util.Set<java.lang.String> parse(java.util.Properties properties)
PropertyDefinition.GDB_ACCESSIBLE_REGIONS from the given properties.properties - the connection propertiesnull when the property is not set
or empty (which means "no restriction — all regions are accessible")