Configuring Conflict Resolver
There are situations when a bridge tries to replicate an operation for a key that already exists in the cache. Conflict Resolver is introduced to resolve the conflict between existing operations and operation replicated from bridge to the cache. It decides which key to apply on the cache depending upon defined rules. By default, the decision will be made on Time Based rule, which keeps the latest key on a cache. Users can also define their own rules for conflict resolver.
Click on the cache name in Cache Explorer to open cache settings.
Go to the Conflict Resolver tab.
Check Enable Conflict Resolver check box to enable it. Others options will become enable after that.
Click on the ‘…’ button and select the assembly in which you have implemented the
Name of selected assembly will appear in Assembly Name textbox and all of its classes, which have implemented the
IBridgeConflictResolverinterface will be listed down in Class Name list box.
Select the required class.
Click New to provide any additional parameters, if required.
New Parameter dialog appears; provide the Parameter Name and Parameter Value.
This step is optional. If your implementation of
IBridgeConflictResolverinterface does not require any initial parameters, then there is no need to provide parameter(s).
Now click the Deploy Conflict Resolver button, select your assembly in which you have implemented
IBridgeConflictResolverinterface and click on the Open button in Open dialog.
Apply configuration using right clicking on the cache name in Cache Explorer and selecting Apply Configuration option.