@Override public U remove(T key) throws UnifyException { return cacheEntries.remove(key).getObject(); }
@Override public void configure(String configurationCode, EmailServerConfig emailServerConfig) throws UnifyException { configurations.remove(configurationCode); configurations.get(configurationCode, emailServerConfig); }
@Override public U put(T key, U object, long expiryPeriod) throws UnifyException { cacheEntries.remove(key); cacheEntries.get(key, object, expiryPeriod); return object; }
public V remove(T mainKey, U key) throws UnifyException { return get(mainKey).remove(key); }
public Set<V> removeSubkeys(U key) throws UnifyException { Set<V> result = new HashSet<V>(); for (T siblingMainKey : keySet()) { V value = get(siblingMainKey).remove(key); if (value != null) { result.add(value); } } return result; }
public void removeSiblingKeys(T mainKey, U key) throws UnifyException { for (T siblingMainKey : keySet()) { if (!siblingMainKey.equals(mainKey)) { get(siblingMainKey).remove(key); } } }
@Override public void terminateConfiguration(String configName) throws UnifyException { DynamicSqlDataSource dsds = getDynamicSqlDataSource(configName); try { dsds.terminate(); } finally { dynamicSqlDataSoureMap.remove(configName); } }
@Override public boolean invalidateStaleDocument(String name) throws UnifyException { if (uplCompiler.invalidateStaleDocument(name)) { Set<StandalonePanelInfo> infoList = standalonePanelInfoByNameMap.removeSubkeys(name); for (StandalonePanelInfo standalonePanelInfo : infoList) { standalonePanelInfo.invalidate(); } pageNamePropertyBindings.remove(name); return true; } return false; }
if (value != null) { if (checkStale && stale(key, value)) { remove(key); value = null;