I think this is almost an impossible task to get right. Because it isn't threadsafe. Hazelcast isn't designed for dynamic configuration changes and this approach is broken. Even making the mapConfig volatile doesn't really fix the problem I think.