Class GroupingPartitioner
- java.lang.Object
-
- org.infinispan.distribution.group.impl.GroupingPartitioner
-
- All Implemented Interfaces:
ToIntFunction<Object>
,org.infinispan.commons.configuration.attributes.Matchable<KeyPartitioner>
,KeyPartitioner
public class GroupingPartitioner extends Object implements KeyPartitioner
Key partitioner that usesGroup
annotations to map grouped keys to the same segment.- Since:
- 8.2
- Author:
- Dan Berindei
-
-
Constructor Summary
Constructors Constructor Description GroupingPartitioner(KeyPartitioner partitioner, GroupManager groupManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSegment(Object key)
Obtains the segment for a key.KeyPartitioner
unwrap()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.distribution.ch.KeyPartitioner
applyAsInt, init, matches
-
-
-
-
Constructor Detail
-
GroupingPartitioner
public GroupingPartitioner(KeyPartitioner partitioner, GroupManager groupManager)
-
-
Method Detail
-
getSegment
public int getSegment(Object key)
Description copied from interface:KeyPartitioner
Obtains the segment for a key. Must be thread-safe.- Specified by:
getSegment
in interfaceKeyPartitioner
-
unwrap
public KeyPartitioner unwrap()
-
-