Package org.apache.ignite.failure

## Interface FailureHandler

- All Known Implementing Classes:
    `AbstractFailureHandler`, `NoOpFailureHandler`, `RestartProcessFailureHandler`, `StopNodeFailureHandler`, `StopNodeOrHaltFailureHandler`

      public interface FailureHandler

  Provides facility to handle failures by custom user implementations, which can be configured by `IgniteConfiguration.setFailureHandler(FailureHandler)` method.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `onFailure​(Ignite ignite, FailureContext failureCtx)` | Handles failure occurred on `ignite` instance.

- - ### Method Detail

    - #### onFailure

          boolean onFailure​(Ignite ignite,
                            FailureContext failureCtx)

      Handles failure occurred on `ignite` instance. Failure details is contained in `failureCtx`. Returns `true` if kernal context must be invalidated by `FailureProcessor` after calling this method.
      Parameters:
        `ignite` - Ignite instance.
        `failureCtx` - Failure context.
      Returns:
        Whether kernal context must be invalidated or not.