public class ClientCacheAffinityContext extends Object
| Constructor and Description |
|---|
ClientCacheAffinityContext(IgniteBinary binary) |
| Modifier and Type | Method and Description |
|---|---|
UUID |
affinityNode(int cacheId,
Object key)
Calculates affinity node for given cache and key.
|
boolean |
affinityUpdateRequired(int cacheId)
Is affinity update required for given cache.
|
org.apache.ignite.internal.client.thin.ClientCacheAffinityContext.TopologyNodes |
lastTopology()
Gets last topology information.
|
boolean |
readPartitionsUpdateResponse(org.apache.ignite.internal.client.thin.PayloadInputChannel ch) |
void |
reset(org.apache.ignite.internal.client.thin.ClientCacheAffinityContext.TopologyNodes top)
Resets affinity context.
|
boolean |
updateLastTopologyVersion(AffinityTopologyVersion topVer,
UUID nodeId)
Update topology version if it's greater than current version and store nodes for last topology.
|
void |
writePartitionsUpdateRequest(org.apache.ignite.internal.client.thin.PayloadOutputChannel ch) |
public ClientCacheAffinityContext(IgniteBinary binary)
binary - Binary data processor.public boolean updateLastTopologyVersion(AffinityTopologyVersion topVer, UUID nodeId)
topVer - Topology version.nodeId - Node id.True if last topology was updated to the new version.public boolean affinityUpdateRequired(int cacheId)
cacheId - Cache id.public void writePartitionsUpdateRequest(org.apache.ignite.internal.client.thin.PayloadOutputChannel ch)
ch - Payload output channel.public boolean readPartitionsUpdateResponse(org.apache.ignite.internal.client.thin.PayloadInputChannel ch)
ch - Payload input channel.public org.apache.ignite.internal.client.thin.ClientCacheAffinityContext.TopologyNodes lastTopology()
public void reset(org.apache.ignite.internal.client.thin.ClientCacheAffinityContext.TopologyNodes top)
top - Topology which triggers reset.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020