Class AffinityPartitioner

java.lang.Object
org.infinispan.distribution.ch.impl.HashFunctionPartitioner
org.infinispan.distribution.ch.impl.AffinityPartitioner
All Implemented Interfaces:
ToIntFunction<Object>, Matchable<KeyPartitioner>, KeyPartitioner

public class AffinityPartitioner extends HashFunctionPartitioner
Key partitioner that maps keys to segments using information contained in AffinityTaggedKey.

If the segment is not defined (value -1) or the key is not an AffinityTaggedKey, will fallback to a HashFunctionPartitioner

Since:
8.2
Author:
gustavonalle