public class ClientCacheAffinityMapping extends Object
| Modifier and Type | Method and Description |
|---|---|
UUID |
affinityNode(IgniteBinary binary,
int cacheId,
Object key)
Calculates affinity node for given cache and key.
|
Collection<Integer> |
cacheIds()
Gets cache IDs.
|
static ClientCacheAffinityMapping |
merge(ClientCacheAffinityMapping... mappings)
Merge specified mappings into one instance.
|
static ClientCacheAffinityMapping |
readResponse(org.apache.ignite.internal.client.thin.PayloadInputChannel ch)
Reads caches affinity response from the input channel and creates
ClientCacheAffinityMapping instance
from this response. |
AffinityTopologyVersion |
topologyVersion()
Gets topology version.
|
static void |
writeRequest(org.apache.ignite.internal.client.thin.PayloadOutputChannel ch,
Collection<Integer> cacheIds)
Writes caches affinity request to the output channel.
|
public AffinityTopologyVersion topologyVersion()
public Collection<Integer> cacheIds()
public UUID affinityNode(IgniteBinary binary, int cacheId, Object key)
binary - Binary data processor (needed to extract affinity field from the key).cacheId - Cache ID.key - Key.null if affinity node can't be determined for given cache and key.public static ClientCacheAffinityMapping merge(ClientCacheAffinityMapping... mappings)
public static void writeRequest(org.apache.ignite.internal.client.thin.PayloadOutputChannel ch,
Collection<Integer> cacheIds)
ch - Output channel.cacheIds - Cache IDs.public static ClientCacheAffinityMapping readResponse(org.apache.ignite.internal.client.thin.PayloadInputChannel ch)
ClientCacheAffinityMapping instance
from this response.ch - Input channel.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020