Which method should be used instead of Hazelcast.getMap ("Map")?

I used the hazelcast-all-2.1 jar before. I recently decided to upgrade to version 2.5.1. I found out that the Hazelcast.getMap("Map") method is deprecated in recent versions. So what is the alternative available for this method?

+4
source share
1 answer

You must get a card from the instance you created. Static methods that provide a default instance have been looted.

 HazelcastInstance instance = Hazelcast.newHazelcastInstance(cfg); IMap map = instance.getMap("map"); 
+4
source

Source: https://habr.com/ru/post/1486255/


All Articles