public class ConsistentHashLoadBalance extends AbstractLoadBalance
| Modifier and Type | Field and Description |
|---|---|
static String |
HASH_ARGUMENTS
Hash arguments name
|
static String |
HASH_NODES
Hash nodes name
|
static String |
NAME |
| Constructor and Description |
|---|
ConsistentHashLoadBalance() |
| Modifier and Type | Method and Description |
|---|---|
<T> int |
getCorrespondingHashCode(List<Invoker<T>> invokers)
get hash code of invokers
Make this method to public in order to use this method in test case
|
selectpublic static final String NAME
public static final String HASH_NODES
public static final String HASH_ARGUMENTS
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.