Package com.hazelcast.spi.merge
Class SplitBrainMergePolicyProvider
java.lang.Object
com.hazelcast.spi.merge.SplitBrainMergePolicyProvider
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
ConstructorDescriptionSplitBrainMergePolicyProvider
(ClassLoader configClassLoader) Constructs a new provider forSplitBrainMergePolicy
classes. -
Method Summary
Modifier and TypeMethodDescriptiongetMergePolicy
(String className) Resolves theSplitBrainMergePolicy
class by its classname.
-
Constructor Details
-
SplitBrainMergePolicyProvider
Constructs a new provider forSplitBrainMergePolicy
classes.- Parameters:
nodeEngine
- theNodeEngine
to retrieve the classloader from
-
-
Method Details
-
getMergePolicy
Resolves theSplitBrainMergePolicy
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
-