public class MultiHostChooser extends Object implements HostChooser
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isUsingAutoLoadBalance(Properties props) |
static boolean |
isVaildPriorityLoadBalance(Properties props)
Determine whether configuring the priority load balancing is valid;
if using priority load balancing, "autoBalance" should be start with priority and end with number
and the number of CNs with priority should be less than the number of CNs on the URL ;
otherwise, return false.
|
Iterator<CandidateHost> |
iterator()
Lists connection hosts in preferred order.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static boolean isVaildPriorityLoadBalance(Properties props)
props - : Connection propertiespublic static boolean isUsingAutoLoadBalance(Properties props)
public Iterator<CandidateHost> iterator()
HostChooseriterator in interface Iterable<CandidateHost>iterator in interface HostChooserCopyright © 2023 openGauss. All rights reserved.