com.hazelcast.instance

## Class NodeShutdownHelper

- java.lang.Object
- - com.hazelcast.instance.NodeShutdownHelper

-     @PrivateApi
      public final class NodeShutdownHelper
      extends Object

  Helper methods for node shutdown scenarios.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `shutdownNodeByFiringEvents(Node node, boolean terminate)` Shutdowns a node by firing lifecycle events.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### shutdownNodeByFiringEvents

          public static void shutdownNodeByFiringEvents(Node node,
                                                        boolean terminate)

      Shutdowns a node by firing lifecycle events. Do not call this method for every node shutdown scenario since `LifecycleListener`s will end up more than one `LifecycleEvent.LifecycleState.SHUTTING_DOWN` or `LifecycleEvent.LifecycleState.SHUTDOWN` events.
      Parameters:
        `node` - Node to shutdown.
        `terminate` - `false` for graceful shutdown, `true` for terminate (un-graceful shutdown)

Copyright © 2020. All rights reserved.