public class GdbRegionFilteredHostsCandidateSource extends java.lang.Object implements ReaderCandidateSource
ReaderCandidateSource for Global Database: topology hosts filtered by accessible regions
and, optionally, restricted to the home region. Reproduces the legacy
GdbReadWriteSplittingPlugin.getReaderHostCandidates.| Constructor and Description |
|---|
GdbRegionFilteredHostsCandidateSource(GdbSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<HostSpec> |
candidates(RwSplitContext ctx)
Returns the eligible reader candidates.
|
public GdbRegionFilteredHostsCandidateSource(GdbSettings settings)
public java.util.List<HostSpec> candidates(RwSplitContext ctx) throws java.sql.SQLException
ReaderCandidateSourcecandidates in interface ReaderCandidateSourcectx - the read/write splitting contextnull; may be empty)java.sql.SQLException