Creating and Removing an Map from HazelCast
Asked Answered
P

1

11

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.

Pyrogen answered 4/6, 2014 at 1:28 Comment(0)
P
27

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.

Pyrogen answered 5/6, 2014 at 17:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.