public class SingleEndpointCandidateSource extends java.lang.Object implements ReaderCandidateSource
ReaderCandidateSource that yields a single reader from the configured read endpoint,
for endpoint-based (Simple) read/write splitting.| Constructor and Description |
|---|
SingleEndpointCandidateSource(java.lang.String readEndpoint) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<HostSpec> |
candidates(RwSplitContext ctx)
Returns the eligible reader candidates.
|
public SingleEndpointCandidateSource(java.lang.String readEndpoint)
public java.util.List<HostSpec> candidates(RwSplitContext ctx)
ReaderCandidateSourcecandidates in interface ReaderCandidateSourcectx - the read/write splitting contextnull; may be empty)