Code example for SetMultimap

Methods: get

0
        return getCallbacks(dataId, null);
    } 
 
    protected Set<SubscribeCallback> getCallbacks(String dataId, String groupId) {
        String key = generateKey(dataId, groupId);
        return callBackMap.get(key);
    } 
 
    protected static String generateKey(String dataId, String groupId) {
        return StringUtils.trimToEmpty(dataId) + "_" + StringUtils.trimToEmpty(groupId);
    } 
 
    protected Object getLock(String dataId, String groupId) {
        String key = generateKey(dataId, groupId);
        return getLock(key);
    } 
 
    protected Object getLock(String key) {
        Object lock = new Object(); 
        Object expectLock = mutexes.putIfAbsent(key, lock);
Experience pair programming with AI  Get Codota for Java