@Override public boolean isStale(long now) { return getExpirationTime(50) <= now; }
@Override public boolean isExpired(long now) { return getExpirationTime(100) <= now; }
/** * Check if the record is stale and whether the record should be refreshed over the network. * * @param now * update date * @return <code>true</code> is the record is stale and should be refreshed, <code>false</code> otherwise. */ public boolean isStaleAndShouldBeRefreshed(long now) { return getExpirationTime(_isStaleAndShouldBeRefreshedPercentage) <= now; }
@Override public boolean isExpired(long now) { return getExpirationTime(100) <= now; }
@Override public boolean isExpired(long now) { return getExpirationTime(100) <= now; }
@Override public boolean isExpired(long now) { return getExpirationTime(100) <= now; }
@Override public boolean isStale(long now) { return getExpirationTime(50) <= now; }
@Override public boolean isStale(long now) { return getExpirationTime(50) <= now; }
@Override public boolean isStale(long now) { return getExpirationTime(50) <= now; }
/** * Get the remaining TTL for this record. */ int getRemainingTTL(long now) { return (int) Math.max(0, (getExpirationTime(100) - now) / 1000); }
/** * Get the remaining TTL for this record. */ int getRemainingTTL(long now) { return (int) Math.max(0, (getExpirationTime(100) - now) / 1000); }
/** * Get the remaining TTL for this record. */ int getRemainingTTL(long now) { return (int) Math.max(0, (getExpirationTime(100) - now) / 1000); }
/** * Get the remaining TTL for this record. */ int getRemainingTTL(long now) { return (int) Math.max(0, (getExpirationTime(100) - now) / 1000); }