public interface ClientPartitionAwarenessMapperFactory
The case described above will not be possible (and in turn partition awareness won't work) when a custom AffinityFunction
or
a AffinityKeyMapper
was previously used for a cache creation. The partition awareness mapper factory is used to solve this
issue. All 'partition-to-node' mappings will still be requested and received from a server node, however, if a custom AffinityFunction
or a custom AffinityKeyMapper was used a ClientPartitionAwarenessMapper produced by this factory will calculate mapping a key to
a partition.
These key to partition mapping functions produced by the factory are used only for local calculations, they will not be passed to a server node.
AffinityFunction
Modifier and Type | Method and Description |
---|---|
ClientPartitionAwarenessMapper |
create(String cacheName,
int partitions) |
ClientPartitionAwarenessMapper create(String cacheName, int partitions)
cacheName
- Cache name to create a mapper for.partitions
- Number of cache partitions received from a server node.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023