public interface GatewayConflictResolver
|Modifier and Type||Method and Description|
This method is invoked when a change is received from another distributed system and the last modification to the affected cache entry did not also come from the same system.
void onEvent(TimestampedEntryEvent event, GatewayConflictHelper helper)
The given GatewayConflictHelper can be used to allow the change to be made to the cache, disallow the modification or make a change to the value to be stored in the cache.
This method is invoked under synchronization on the cache entry in order to prevent it from concurrent modification
For any two events, all GatewayConflictResolvers must make the same decision on the resolution of the conflict in order to maintain consistency. They must do so regardless of the order of the events.
event- the event that is in conflict with the current cache state
helper- an object to be used in modifying the course of action for this event
Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.