com.alachisoft.ncache.runtime.bridge
Interface BridgeConflictResolver


public interface BridgeConflictResolver


Method Summary
 void dispose()
          Perform tasks associated with freeing, releasing, or resetting resources.
 void init(java.util.HashMap parameters)
          /** Perform tasks like allocating resources or acquiring connections etc.
 ConflictResolution resolve(ProviderBridgeItem oldEntry, ProviderBridgeItem newEntry)
          Perform tasks like Conflict Resolution between different cache and bridge operation.
 

Method Detail

dispose

void dispose()
             throws java.lang.Exception
Perform tasks associated with freeing, releasing, or resetting resources.

Throws:
java.lang.Exception

init

void init(java.util.HashMap parameters)
          throws java.lang.Exception
/** Perform tasks like allocating resources or acquiring connections etc.

Parameters:
parameters - Startup parameters defined in the configuration
Throws:
java.lang.Exception

resolve

ConflictResolution resolve(ProviderBridgeItem oldEntry,
                           ProviderBridgeItem newEntry)
                           throws java.lang.Exception
Perform tasks like Conflict Resolution between different cache and bridge operation.

Parameters:
oldEntry - Existing entry in the cache store
newEntry - The new entry to be saved to cache
Returns:
Throws:
java.lang.Exception