/** * Check the statistic for expiry. * * @param expiry expiry threshold * @return {@code true} if expired */ protected boolean expire(long expiry) { return delegate.expire(expiry); } }
/** * Expire. * * @param expiryTime the expiry time * @return true, if successful */ boolean expire(long expiryTime) { if (alwaysOn) { return false; } else { boolean expired = true; for (OperationImpl<?> o : operations.values()) { expired &= o.expire(expiryTime); } for (Iterator<OperationImpl<T>> it = compounds.values().iterator(); it.hasNext();) { if (it.next().expire(expiryTime)) { it.remove(); } } for (Iterator<ExpiringStatistic<Double>> it = ratios.values().iterator(); it.hasNext();) { if (it.next().expire(expiryTime)) { it.remove(); } } return expired & compounds.isEmpty() & ratios.isEmpty(); } }
/** * Check the statistic for expiry. * * @param expiry expiry threshold * @return {@code true} if expired */ protected boolean expire(long expiry) { return delegate.expire(expiry); } }
/** * Check the statistic for expiry. * * @param expiry expiry threshold * @return {@code true} if expired */ protected boolean expire(long expiry) { return delegate.expire(expiry); } }
/** * Expire. * * @param expiryTime the expiry time * @return true, if successful */ boolean expire(long expiryTime) { if (alwaysOn) { return false; } else { boolean expired = true; for (OperationImpl<?> o : operations.values()) { expired &= o.expire(expiryTime); } for (Iterator<OperationImpl<T>> it = compounds.values().iterator(); it.hasNext();) { if (it.next().expire(expiryTime)) { it.remove(); } } for (Iterator<ExpiringStatistic<Double>> it = ratios.values().iterator(); it.hasNext();) { if (it.next().expire(expiryTime)) { it.remove(); } } return expired & compounds.isEmpty() & ratios.isEmpty(); } }
/** * Expire. * * @param expiryTime the expiry time * @return true, if successful */ boolean expire(long expiryTime) { if (alwaysOn) { return false; } else { boolean expired = true; for (OperationImpl<?> o : operations.values()) { expired &= o.expire(expiryTime); } for (Iterator<OperationImpl<T>> it = compounds.values().iterator(); it.hasNext();) { if (it.next().expire(expiryTime)) { it.remove(); } } for (Iterator<ExpiringStatistic<Double>> it = ratios.values().iterator(); it.hasNext();) { if (it.next().expire(expiryTime)) { it.remove(); } } return expired & compounds.isEmpty() & ratios.isEmpty(); } }