我在doco中没有找到,希望有人能解答。
假设
putAsync
被同一线程多次调用:
cache.putAsync(keyA, valA1);
cache.putAsync(keyA, valA2); // Notice it's the same key, different value
cache.putAsync(keyB, valB); // Different key now
// ...more calls with either same or different keys, still from the same thread
是否可以保证这些值将以相同的顺序到达客户端上设置的连续查询侦听器?
如果没有,在更受限的情况下是否有这样的保证 - 当从 Ignite 服务内部调用上述
putAsync
时,对于分区缓存,在数据(或将要)存储的节点上分区?
谢谢!
保证同一分区内的键的顺序(请参阅数据分区)。
当密钥属于不同分区时,无法保证。