Hazelcast Implementation #6
-
@vladimir-bukhtoyarov is the provided Hazelcast implementation safe across multiple JVMs? I mean, does it ensure that two nodes creating a bucket simultaneously on a given named |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, Hazelcast implementation is safe(same for GridGain and Coherence), it never replaces bucket which already exists: public class HazelcastProxy implements GridProxy {
...
@Override
public void setInitialState(GridBucketState initialState) {
map.putIfAbsent(key, initialState);
}
...
} This behavior is guaranteed by putIfAbsent |
Beta Was this translation helpful? Give feedback.
-
@vladimir-bukhtoyarov that's great :-) Thank you so much! Great project, by the way :-) |
Beta Was this translation helpful? Give feedback.
Yes, Hazelcast implementation is safe(same for GridGain and Coherence), it never replaces bucket which already exists:
This behavior is guaranteed by putIfAbsent