public interface BalanceStrategy
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allBlack(List<HostAddress> loopAddress,
ConcurrentMap<HostAddress,HostStateInfo> blacklist) |
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) |
static boolean allBlack(List<HostAddress> loopAddress, ConcurrentMap<HostAddress,HostStateInfo> blacklist)
void pickConnection(LoadBalanceAddressList loadBalanceAddressList, UrlParser urlParser, Listener listener, GlobalStateInfo globalInfo, SearchFilter searchFilter, ConcurrentMap<HostAddress,HostStateInfo> blacklist, Set<HostAddress> pickedList) throws SQLException
loadBalanceAddressList - current load balance config infourlParser - url parser,get options from itlistener - current listenerglobalInfo - global infosearchFilter - filterblacklist - current black host listSQLExceptionvoid pickConnectionFallThrough(LoadBalanceAddressList loadBalanceAddressList, Listener listener, GlobalStateInfo globalInfo) throws SQLException
SQLExceptionCopyright © 2022 oceanbase.com. All rights reserved.