
cn.leancloud.cache.LastModifyCache Maven / Gradle / Ivy
package cn.leancloud.cache;
import java.util.Collections;
import java.util.Map;
import java.util.WeakHashMap;
public class LastModifyCache {
private static LastModifyCache INSTANCE = null;
public static synchronized LastModifyCache getInstance() {
if (null == INSTANCE) {
INSTANCE = new LastModifyCache();
}
return INSTANCE;
}
private boolean lastModifyEnabled = false;
private Map lastModifyMap = Collections
.synchronizedMap(new WeakHashMap());
private LastModifyCache() {
}
public boolean isLastModifyEnabled() {
return lastModifyEnabled;
}
public void setLastModifyEnabled(boolean lastModifyEnabled) {
this.lastModifyEnabled = lastModifyEnabled;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy