/** * set that this tag has been recorded in a receiver's RVV */ public void setRecorded() { setBits(BITS_RECORDED); }
/** * @param previousMemberID the previousMemberID to set */ public void setPreviousMemberID(T previousMemberID) { setBits(BITS_HAS_PREVIOUS_ID); this.previousMemberID = previousMemberID; }
public void setIsRemoteForTesting() { setBits(BITS_IS_REMOTE_TAG); }
public void setIsGatewayTag(boolean isGateway) { if (isGateway) { setBits(BITS_GATEWAY_TAG); } else { clearBits(~BITS_GATEWAY_TAG); } }
/** record that the timestamp from this tag was applied to the cache */ public void setTimeStampApplied(boolean isTimeStampUpdated) { if (isTimeStampUpdated) { setBits(BITS_TIMESTAMP_APPLIED); } else { clearBits(~BITS_TIMESTAMP_APPLIED); } }
/** * set or clear the flag that this tag was blessed by a conflict resolver * * @return this tag */ public VersionTag setAllowedByResolver(boolean flag) { if (flag) { setBits(BITS_ALLOWED_BY_RESOLVER); } else { clearBits(~BITS_ALLOWED_BY_RESOLVER); } return this; }
/** * sets the possible-duplicate flag for this tag. When a tag has this bit it means that the cache * had seen the operation that was being applied to it and plucked out the current version stamp * to use in propagating the event to other members and clients. A member receiving this event * should not allow duplicate application of the event to the cache. */ public VersionTag setPosDup(boolean flag) { if (flag) { setBits(BITS_POSDUP); } else { clearBits(~BITS_POSDUP); } return this; }