com.hazelcast.map.merge

## Class MergePolicyProvider

- java.lang.Object
- - com.hazelcast.map.merge.MergePolicyProvider

-     public final class MergePolicyProvider
      extends Object

  A provider for `MapMergePolicy` instances.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MergePolicyProvider(NodeEngine nodeEngine)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `getMergePolicy(String className)` Returns an instance of a merge policy by its classname.

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

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

- - ### Constructor Detail

    - #### MergePolicyProvider

          public MergePolicyProvider(NodeEngine nodeEngine)

  - ### Method Detail

    - #### getMergePolicy

          public Object getMergePolicy(String className)

      Returns an instance of a merge policy by its classname.

      First tries to resolve the classname as `SplitBrainMergePolicy`, then as `MapMergePolicy`.

      If no merge policy matches an exception is thrown.

      Parameters:
        `className` - the classname of the given merge policy
      Returns:
        an instance of the merge policy class

Copyright © 2018. All rights reserved.