public class TopologyHostsCandidateSource extends java.lang.Object implements ReaderCandidateSource
ReaderCandidateSource that returns all hosts from the current cluster topology.| Constructor and Description |
|---|
TopologyHostsCandidateSource() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<HostSpec> |
candidates(RwSplitContext ctx)
Returns the eligible reader candidates.
|
public java.util.List<HostSpec> candidates(RwSplitContext ctx)
ReaderCandidateSourcecandidates in interface ReaderCandidateSourcectx - the read/write splitting contextnull; may be empty)