public class RotationStrategy extends Object implements BalanceStrategy
| Constructor and Description |
|---|
RotationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
pickConnection(LoadBalanceAddressList loadBalanceAddressList,
UrlParser urlParser,
Listener listener,
GlobalStateInfo globalInfo,
SearchFilter searchFilter,
ConcurrentMap<HostAddress,HostStateInfo> blacklist,
Set<HostAddress> pickedList)
Select a proper connection based on the current configuration information
|
void |
pickConnectionFallThrough(LoadBalanceAddressList loadBalanceAddressList,
Listener listener,
GlobalStateInfo globalInfo) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitallBlackpublic void pickConnection(LoadBalanceAddressList loadBalanceAddressList, UrlParser urlParser, Listener listener, GlobalStateInfo globalInfo, SearchFilter searchFilter, ConcurrentMap<HostAddress,HostStateInfo> blacklist, Set<HostAddress> pickedList) throws SQLException
BalanceStrategypickConnection in interface BalanceStrategyloadBalanceAddressList - current load balance config infourlParser - url parser,get options from itlistener - current listenerglobalInfo - global infosearchFilter - filterblacklist - current black host listSQLExceptionpublic void pickConnectionFallThrough(LoadBalanceAddressList loadBalanceAddressList, Listener listener, GlobalStateInfo globalInfo) throws SQLException
pickConnectionFallThrough in interface BalanceStrategySQLExceptionCopyright © 2022 oceanbase.com. All rights reserved.