• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Configure 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 a time-based rule, which keeps the latest key on a cache. Users can also define their own rules for conflict resolver.

Important

Make sure you have implemented IBridgeConflictResolver interface to configure it on cache.

  • Launch NCache Web Manager by browsing to http://localhost:8251 or <server-ip>:8251 on Windows and Linux.

  • In the left navigation bar, click on Clustered Caches. Against the cache name click on View Details.

Note

Make sure that the cache is stopped.

Clustered Caches List Web Manager

  • In the new window opened, go to the Advanced Settings tab and from the left bar, click on Conflict Resolver.

  • It will open a window with conflict resolver options. Check the Enable Conflict Resolver checkbox in order to enable conflict resolver.

Check the conflict resolver web

  • After enabling, click on the ... button and select the assembly in which conflict resolver is implemented.

Add the conflict resolver assembly

  • Select the assembly and the name of the selected assembly will appear in the Assembly Name textbox along with all the classes which have implemented the IBridgeConflictResolver interface. Select the required class.

Select the conflict resolver assembly

  • Enter the parameters if your implemented class requires any and then click +.

Select the conflict resolver assembly

  • Click the Deploy Conflict Resolver button, select your assembly in which you have implemented IBridgeConflictResolver interface and click on the Open button in Open dialog.

Select the conflict resolver assembly

  • Click on Save Changes once all the changes are made and you have deployed the assemblies.

See Also

Create Bridge
Configure Bridge Settings
Change Cache Synchronization Modes
Remove Cache from Bridge

Back to top Copyright © 2017 Alachisoft