public static interface PartitionedHashMap.HashFunction<K>
Modifier and Type | Method and Description |
---|---|
Address |
hash(K key,
List<Address> membership)
Defines a hash function to pick the right node from the list of cluster nodes.
|
Address hash(K key, List<Address> membership)
key
- The object to be hashedmembership
- The membership. This value can be ignored for example if the hash function keeps
track of the membership itself, e.g. by registering as a membership
listener (PartitionedHashMap.addMembershipListener(org.jgroups.MembershipListener)
)Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.