Skip to content

Hazelcast Implementation #6

Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vladimir-bukhtoyarov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6 on December 21, 2020 15:29.