@LoadLevel(name="ConsistentHashLoadBalance") public class ConsistentHashLoadBalance extends Object implements LoadBalance
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConsistentHashLoadBalance.HashFunction
Hash String to long value
|
| Modifier and Type | Field and Description |
|---|---|
static String |
LOAD_BALANCE_CONSISTENT_HASH_VIRTUAL_NODES
The constant LOAD_BALANCE_CONSISTENT_HASH_VIRTUAL_NODES.
|
SPLIT| Constructor and Description |
|---|
ConsistentHashLoadBalance() |
public static final String LOAD_BALANCE_CONSISTENT_HASH_VIRTUAL_NODES
public <T> T select(List<T> invokers, String xid)
LoadBalanceselect in interface LoadBalanceT - the type parameterinvokers - the invokersxid - the xidCopyright © 2023 Seata. All rights reserved.