Winston Winston - 1 year ago 85
Java Question

Is there any way to shut down a Hazelcast instance in a JVM?

My Java code started numbers of Hazelcast instances in the same JVM (but they are in the same group).

Now I want to shut down some of instances, but not all of them.

I know the method

- this method closes all of the instances. Is there a method that allows to close a specific instance?

Answer Source

It's very easy - here is the code:

HazelcastInstance instance =  Hazelcast.newHazelcastInstance(config);

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download