Class GroupingPartitioner
java.lang.Object
org.infinispan.distribution.group.impl.GroupingPartitioner
- All Implemented Interfaces:
ToIntFunction<Object>
,Matchable<KeyPartitioner>
,KeyPartitioner
Key partitioner that uses
Group
annotations to map
grouped keys to the same segment.- Since:
- 8.2
- Author:
- Dan Berindei
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getSegment
(Object key) Obtains the segment for a key.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, init, matches
-
Constructor Details
-
GroupingPartitioner
-
-
Method Details
-
getSegment
Description copied from interface:KeyPartitioner
Obtains the segment for a key. Must be thread-safe.- Specified by:
getSegment
in interfaceKeyPartitioner
-
unwrap
-