/** Return the absolute time when idle expiration occurs, or 0 if not used */ protected final long getIdleExpirationTime() throws EntryNotFoundException { long idle = getIdleAttributes().getTimeout(); long tilt = 0; if (idle > 0) { if (!getLocalRegion().EXPIRY_UNITS_MS) { idle *= 1000; } tilt = getLastAccessedTime() + idle; } return tilt; }
/** Return the absolute time when idle expiration occurs, or 0 if not used */ public final long getIdleExpirationTime() throws EntryNotFoundException { long idle = getIdleAttributes().getTimeout(); long tilt = 0; if (idle > 0) { if (getLocalRegion()!=null && !getLocalRegion().EXPIRY_UNITS_MS) { idle *= 1000; } tilt = getLastAccessedTime() + idle; } return tilt; }
expTtl = String.valueOf(getTTLExpirationTime()); if (getIdleAttributes() != null) { expIdle = String.valueOf(getIdleExpirationTime());
/** Why did this expire? * @return the action to perform or null if NONE */ protected ExpirationAction getAction() { long ttl = getTTLExpirationTime(); long idle = getIdleExpirationTime(); if (ttl == 0) { if (idle == 0) return null; return getIdleAttributes().getAction(); } if (idle == 0) { // we know ttl != 0 return getTTLAttributes().getAction(); } // Neither is 0 if (idle < ttl) { return getIdleAttributes().getAction(); } return getTTLAttributes().getAction(); }
expTtl = String.valueOf(getTTLExpirationTime()); if (getIdleAttributes() != null) { expIdle = String.valueOf(getIdleExpirationTime());
/** Why did this expire? * @return the action to perform or null if NONE */ protected ExpirationAction getAction() { long ttl = getTTLExpirationTime(); long idle = getIdleExpirationTime(); if (ttl == 0) { if (idle == 0) return null; return getIdleAttributes().getAction(); } if (idle == 0) { // we know ttl != 0 return getTTLAttributes().getAction(); } // Neither is 0 if (idle < ttl) { return getIdleAttributes().getAction(); } return getTTLAttributes().getAction(); }