Class SingleSegmentKeyPartitioner
java.lang.Object
org.infinispan.distribution.ch.impl.SingleSegmentKeyPartitioner
- All Implemented Interfaces:
ToIntFunction<Object>
,Matchable<KeyPartitioner>
,KeyPartitioner
KeyPartitioner that always returns 0 for a given segment. This can be useful when segments are not in use, such
as local or invalidation caches.
- Since:
- 9.3
- Author:
- wburns
-
Method Summary
Modifier and TypeMethodDescriptionstatic SingleSegmentKeyPartitioner
int
getSegment
(Object key) Obtains the segment for a key.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
-
Method Details
-
getInstance
-
getSegment
Description copied from interface:KeyPartitioner
Obtains the segment for a key. Must be thread-safe.- Specified by:
getSegment
in interfaceKeyPartitioner
-