从HazelCast创建和删除地图(Creating and Removing an Map from HazelCast)
我正在使用以下代码在HazelCast中创建地图
HazelcastInstance instance = null; Config cfg = new Config(); instance =Hazelcast.newHazelcastInstance(cfg); instance.getMap(mapName);一旦我完成了我的处理,我想从HazelCast中删除此地图。 你能否建议如何去做。
谢谢,Praveen
我没有收到任何答复,但得到了答案。 您可以使用
instance.getMap(mapName).destroy();我张贴这个,以便它可以帮助其他有需要的人。
I am using the following code to create an map in HazelCast
HazelcastInstance instance = null; Config cfg = new Config(); instance =Hazelcast.newHazelcastInstance(cfg); instance.getMap(mapName);Once I am done with the my processing I want to remove this map from HazelCast. Can you Please suggest how to go about it.
Thanks, Praveen
I did not receive any replies but got the answer. You can use
instance.getMap(mapName).destroy();I am posting this so that it might help someone else in need.
最满意答案
我没有收到任何答复,但得到了答案。 您可以使用
instance.getMap(mapName).destroy();我张贴这个,以便它可以帮助其他有需要的人。
I did not receive any replies but got the answer. You can use
instance.getMap(mapName).destroy();I am posting this so that it might help someone else in need.
更多推荐
发布评论