从HazelCast创建和删除地图(Creating and Removing an Map from HazelCast)

编程入门 行业动态 更新时间:2024-10-28 14:32:20
从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.

更多推荐

本文发布于:2023-04-28 00:18:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1329611.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:地图   HazelCast   Creating   Map   Removing

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!