com.hazelcast.spi.merge

## Class SplitBrainMergePolicyProvider

- java.lang.Object
- - com.hazelcast.spi.merge.SplitBrainMergePolicyProvider

-     public final class SplitBrainMergePolicyProvider
      extends Object

  A provider for `SplitBrainMergePolicy` instances.

  Registers out-of-the-box merge policies by their fully qualified and simple class name.

  Since:
    3.10

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SplitBrainMergePolicyProvider(NodeEngine nodeEngine)` Constructs a new provider for `SplitBrainMergePolicy` classes.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `SplitBrainMergePolicy` | `getMergePolicy(String className)` Resolves the `SplitBrainMergePolicy` class by its classname.

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

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

- - ### Constructor Detail

    - #### SplitBrainMergePolicyProvider

          public SplitBrainMergePolicyProvider(NodeEngine nodeEngine)

      Constructs a new provider for `SplitBrainMergePolicy` classes.
      Parameters:
        `nodeEngine` - the `NodeEngine` to retrieve the classloader from

  - ### Method Detail

    - #### getMergePolicy

          public SplitBrainMergePolicy getMergePolicy(String className)

      Resolves the `SplitBrainMergePolicy` class by its classname.
      Parameters:
        `className` - the merge policy classname to resolve
      Returns:
        the resolved `SplitBrainMergePolicy` class
      Throws:
        `InvalidConfigurationException` - when the classname could not be resolved

Copyright © 2020. All rights reserved.