Move state of ClusterHeartbeatSender to separate immutable class, see #2284
This commit is contained in:
parent
668d5a5013
commit
66c81e915e
3 changed files with 221 additions and 75 deletions
|
|
@ -18,7 +18,7 @@ import java.util.Arrays
|
|||
* hash, i.e. make sure it is different for different nodes.
|
||||
*
|
||||
*/
|
||||
class ConsistentHash[T: ClassTag] private (nodes: SortedMap[Int, T], virtualNodesFactor: Int) {
|
||||
class ConsistentHash[T: ClassTag] private (nodes: SortedMap[Int, T], val virtualNodesFactor: Int) {
|
||||
|
||||
import ConsistentHash._
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue