Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我以前一直在使用hazelcast-all-2.1 jar。最近我决定迁移到 2.5.1 版本。我发现该Hazelcast.getMap("Map")方法在最近的版本中已被弃用。那么这种方法的替代方法是什么?
hazelcast-all-2.1 jar
Hazelcast.getMap("Map")
您应该从您创建的实例中获取地图。提供默认实例的静态方法已被弃用。
HazelcastInstance instance = Hazelcast.newHazelcastInstance(cfg); IMap map = instance.getMap("map");