Package org.infinispan.conflict
Class EntryMergePolicyFactoryRegistry
- java.lang.Object
-
- org.infinispan.conflict.EntryMergePolicyFactoryRegistry
-
public class EntryMergePolicyFactoryRegistry extends Object
A registry forEntryMergePolicyFactory
implementations, which allowsEntryMergePolicy
implementations to be eagerly/lazily loaded across multiple contexts. The order in whichEntryMergePolicyFactory
implementations are added to the registry determines their priority, withcreateInstance(PartitionHandlingConfiguration)
returning as soon as the first non-null implementation is encountered. In embedded mode we only expect a single factory implementation to be present as custom policy implementations are provided during runtime by the user or loaded via theParser
'sConfigurationBuilder
's classloader. However, in server mode it's possible for users to deploy their custom policies to the server or use one of the default policies, therefore it's necessary for both the embedded factory and a server factory to be utilised.
-
-
Constructor Summary
Constructors Constructor Description EntryMergePolicyFactoryRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMergePolicyFactory(EntryMergePolicyFactory factory)
EntryMergePolicy
createInstance(PartitionHandlingConfiguration config)
-
-
-
Method Detail
-
createInstance
public EntryMergePolicy createInstance(PartitionHandlingConfiguration config)
-
addMergePolicyFactory
public void addMergePolicyFactory(EntryMergePolicyFactory factory)
-
-