public void recordVersion(T mbr,VersionTag<T> tag){
  tag.setRecorded();
  assert tag.isRecorded();
  T member=tag.getMemberID();
  if (member == null) {
    member=mbr;
  }
  if (this.myId.equals(member)) {
synchronized (localExceptions) {
      if (this.localVersion.get() < tag.getRegionVersion()) {
        Assert.fail("recordVersion invoked for a local version tag that is higher than our local version. rvv=" + this + ", tag="+ tag+ " "+ regionName);
      }
    }
  }
  recordVersion(member,tag.getRegionVersion());
}

public void recordVersion ( T mbr , VersionTag < T > tag ) { tag . setRecorded ( ) ; assert tag . isRecorded ( ) ; T member = tag . getMemberID ( ) ; if ( member == null ) { member = mbr ; } if ( this . myId . equals ( member ) ) { synchronized ( localExceptions ) { if ( this . localVersion . get ( ) < tag . getRegionVersion ( ) ) { Assert . fail ( "recordVersion invoked for a local version tag that is higher than our local version. rvv=" + this + ", tag=" + tag + " " + regionName ) ; } } } recordVersion ( member , tag . getRegionVersion ( ) ) ; }
records a received region - version . these are transmitted in versiontags in messages between peers and from servers to clients .
