Code example for ConcurrentHashMap

Methods: get, values

0
        return null; 
    } 
 
    public Collection<StreamDefinition> getAllStreamDefinitionsFromStore( 
            Credentials credentials) { 
        ConcurrentHashMap<String, StreamDefinition> map = streamDefinitionStore.get(credentials.getDomainName()); 
        if (map != null) { 
            return map.values(); 
        } 
        return null; 
 
    } 
 
}