protected void notifyTimestampsToGateways(EntryEventImpl event){
  VersionTagHolder updateTimeStampEvent=new VersionTagHolder(event.getVersionTag());
  updateTimeStampEvent.setOperation(Operation.UPDATE_VERSION_STAMP);
  updateTimeStampEvent.setKeyInfo(event.getKeyInfo());
  updateTimeStampEvent.setGenerateCallbacks(false);
  updateTimeStampEvent.distributedMember=event.getDistributedMember();
  updateTimeStampEvent.setNewEventId(getSystem());
  if (event.getRegion() instanceof BucketRegion) {
    BucketRegion br=(BucketRegion)event.getRegion();
    PartitionedRegion pr=br.getPartitionedRegion();
    updateTimeStampEvent.setRegion(pr);
    if (pr.isParallelWanEnabled()) {
      br.handleWANEvent(updateTimeStampEvent);
    }
    if (pr.isInitialized()) {
      pr.notifyGatewaySender(EnumListenerEvent.TIMESTAMP_UPDATE,updateTimeStampEvent);
    }
  }
 else {
    updateTimeStampEvent.setRegion(event.getRegion());
    notifyGatewaySender(EnumListenerEvent.TIMESTAMP_UPDATE,updateTimeStampEvent);
  }
}

protected void notifyTimestampsToGateways ( EntryEventImpl event ) { VersionTagHolder updateTimeStampEvent = new VersionTagHolder ( event . getVersionTag ( ) ) ; updateTimeStampEvent . setOperation ( Operation . UPDATE_VERSION_STAMP ) ; updateTimeStampEvent . setKeyInfo ( event . getKeyInfo ( ) ) ; updateTimeStampEvent . setGenerateCallbacks ( false ) ; updateTimeStampEvent . distributedMember = event . getDistributedMember ( ) ; updateTimeStampEvent . setNewEventId ( getSystem ( ) ) ; if ( event . getRegion ( ) instanceof BucketRegion ) { BucketRegion br = ( BucketRegion ) event . getRegion ( ) ; PartitionedRegion pr = br . getPartitionedRegion ( ) ; updateTimeStampEvent . setRegion ( pr ) ; if ( pr . isParallelWanEnabled ( ) ) { br . handleWANEvent ( updateTimeStampEvent ) ; } if ( pr . isInitialized ( ) ) { pr . notifyGatewaySender ( EnumListenerEvent . TIMESTAMP_UPDATE , updateTimeStampEvent ) ; } } else { updateTimeStampEvent . setRegion ( event . getRegion ( ) ) ; notifyGatewaySender ( EnumListenerEvent . TIMESTAMP_UPDATE , updateTimeStampEvent ) ; } }
this notifies all wan sites about updated timestamp on local site .
