@PrivateApi public final class NodeShutdownHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
shutdownNodeByFiringEvents(Node node,
boolean terminate)
Shutdowns a node by firing lifecycle events.
|
public static void shutdownNodeByFiringEvents(Node node, boolean terminate)
LifecycleListener
s will end up more than one
LifecycleEvent.LifecycleState.SHUTTING_DOWN
or LifecycleEvent.LifecycleState.SHUTDOWN
events.node
- Node to shutdown.terminate
- false
for graceful shutdown, true
for terminate (un-graceful shutdown)Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.