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
It's very easy - here is the code:
HazelcastInstance instance = Hazelcast.newHazelcastInstance(config); instance.getLifecycleService().shutdown();