public static interface PartitionedHashMap.HashFunction<K>
Modifier and Type | Method and Description |
---|---|
Address |
hash(K key,
java.util.List<Address> membership)
Defines a hash function to pick the right node from the list of cluster nodes.
|
Address hash(K key, java.util.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 © 1998-2020 Red Hat. All Rights Reserved.