@Override public void dispose() { super.dispose(); try { getLock().writeLock().lock(); _sourceChunks.clear(); _times.clear(); } finally { getLock().writeLock().unlock(); } }
@Override public void setParameter(String key, String value) { if (EJECTION_POLICY_PARAM.equalsIgnoreCase(key)) try { setEjectionPolicy(EjectionPolicy.valueOf(value)); } catch (Exception e) { /** Error : error */ LOGGER.error("could not set policy to " + value + ", assuming LeastRecentlyMatched", e); setEjectionPolicy(EjectionPolicy.LeastRecentlyMatched); } else super.setParameter(key, value); }
@Override public void initialize() { super.initialize(); _initialized = true; }