为什么Hazelcast IMap.putTransient会激活EntryAddedListener?

时间:2017-04-27 13:16:11

标签: cluster-computing hazelcast hazelcast-imap

使用版本3.6.1,为什么我们对put和putTransient的地图侦听器有不同的行为(添加了.putTransient fires,并且.put fires已更新)?

public void testNoDelta() {
    String str = "world";
    String key = "hello";
    map.putTransient(key, str, 1000, TimeUnit.MILLISECONDS);
    map.putTransient(key, str, 1000, TimeUnit.MILLISECONDS);
    map.putTransient(key, str, 1000, TimeUnit.MILLISECONDS);
    map.putTransient(key, str, 1000, TimeUnit.MILLISECONDS);

    map.put(key, str);
    map.put(key, str);
    map.put(key, str);
    map.put(key, str);
}

1 个答案:

答案 0 :(得分:0)

我认为你点击了this issue,这是https://github.com/hazelcast/hazelcast/pull/10082在Hazelcast 3.8.1中修复的。