public interface KeyPartitioner
Modifier and Type | Method and Description |
---|---|
int |
getSegment(Object key)
Obtains the segment for a key.
|
default void |
init(HashConfiguration configuration)
Initialization.
|
default void init(HashConfiguration configuration)
The partitioner can also use injection to access other cache-level or global components. This method will be called before any other injection methods.
Does not need to be thread-safe (Infinispan safely publishes the instance after initialization).
configuration
- int getSegment(Object key)
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.