public class WANConflictResolver extends Object implements com.gemstone.gemfire.cache.util.GatewayConflictResolver, com.gemstone.gemfire.cache.Declarable, Dialog.CloseCallback
WANConflictResolver is a GatewayConflictResolver
provides several alternative methods for resolving conflicts in a WAN configuration
when multiple sites are modifying the same objects.The resolver is installed into the cache through eu-hub/cache.xml and us-hub/cache.xml. These determine the type of conflict resolution that will be performed. The options are:
use-latest
merge
highest-int
use-latest will select to keep the event with the latest timestamp.| Modifier and Type | Field and Description |
|---|---|
protected int |
numberOfConflicts
Counter tracking the number of conflicting events received
|
| Constructor and Description |
|---|
WANConflictResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This is invoked when the dialog closes.
|
void |
init(Properties p)
Initializes this
WANConflictResolver. |
void |
onEvent(com.gemstone.gemfire.cache.util.TimestampedEntryEvent event,
com.gemstone.gemfire.cache.util.GatewayConflictHelper helper) |
protected int numberOfConflicts
public void init(Properties p)
WANConflictResolver.init in interface com.gemstone.gemfire.cache.Declarablep - The Properties with which to initialize this
WANConflictResolverpublic void onEvent(com.gemstone.gemfire.cache.util.TimestampedEntryEvent event,
com.gemstone.gemfire.cache.util.GatewayConflictHelper helper)
onEvent in interface com.gemstone.gemfire.cache.util.GatewayConflictResolverpublic void close()
close in interface Dialog.CloseCallbackCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.