Alachisoft NCache 4.1 - Online Documentation

Using Bridge Conflict Resolver

 
Namespace:
 
For enabling Bridge Conflict Resolver, your program needs a reference to the assembly NCRuntime.jar that contains interface com.alachisoft.ncache.runtime.bridge.BridgeConflictResolver provided by NCache. The class implementing this interface allows framework to resolve conflict between existing operations and operation replicated from bridge to cache. Thus, the class needs to include the logic for Conflict Resolution between bridge and cache.
 
Following namespace is required in your project for using Bridge Conflict Resolver:
 
import com.alachisoft.ncache.runtime.bridge.BridgeConflictResolver;
import com.alachisoft.ncache.runtime.bridge.BridgeItemOpCodes;
import com.alachisoft.ncache.runtime.bridge.ConflictResolution;
import com.alachisoft.ncache.runtime.bridge.ProviderBridgeItem;
import com.alachisoft.ncache.runtime.bridge.ResolutionAction;
 
BridgeConflictResolver Interface:
 
In order to use BridgeConflictResolver in your application, implement the following interface:
 
public void init(HashMap parameters) throws Exception;
public ConflictResolution resolve(ProviderBridgeItem oldEntry, ProviderBridgeItem newEntry) throws Exception;
public void dispose() throws Exception;
           
 
See Also
 
Copyright © 2005-2012 Alachisoft. All rights reserved.