com.yhzdys.myosotis.support.LockStore Maven / Gradle / Ivy
package com.yhzdys.myosotis.support;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public final class LockStore {
private static final Map lockMap = new ConcurrentHashMap<>(2);
public static Lock get(String key) {
return lockMap.computeIfAbsent(key, k -> new Lock());
}
private static class Lock {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy