private long getStalenessOfSecondaryRelativeToPrimary(final ServerDescription primary, final ServerDescription serverDescription, final long heartbeatFrequencyMS) { return getLastWriteDateNonNull(primary).getTime() + (serverDescription.getLastUpdateTime(MILLISECONDS) - primary.getLastUpdateTime(MILLISECONDS)) - getLastWriteDateNonNull(serverDescription).getTime() + heartbeatFrequencyMS; }
private long getStalenessOfSecondaryRelativeToPrimary(final ServerDescription primary, final ServerDescription serverDescription, final long heartbeatFrequencyMS) { return getLastWriteDateNonNull(primary).getTime() + (serverDescription.getLastUpdateTime(MILLISECONDS) - primary.getLastUpdateTime(MILLISECONDS)) - getLastWriteDateNonNull(serverDescription).getTime() + heartbeatFrequencyMS; }