Java ConcurrentMap getCache(String cacheName)

Here you can find the source of getCache(String cacheName)

Description

get Cache

License

Open Source License

Declaration

public static ConcurrentMap<?, ?> getCache(String cacheName) 

Method Source Code


//package com.java2s;
/*//from   w  w  w .  j a v a  2s  .co m
 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

public class Main {
    static final ConcurrentMap<String, ConcurrentMap<?, ?>> MAP_OF_MAP = new ConcurrentHashMap<>();

    public static ConcurrentMap<?, ?> getCache(String cacheName) {
        return MAP_OF_MAP.get(cacheName);
    }
}

Related

  1. createConcurrentMap(int initial_capacity, float load_factor, int concurrency_level)
  2. extractKeySize(String sslCipherSuite)
  3. fileReaderDecrement(ConcurrentMap readers, Long fileNum)
  4. fileReaderIncrement(ConcurrentMap readers, Long fileNum)
  5. get(Class clazz)
  6. getConcurrentMap(int... size)
  7. getContextPath()
  8. getFilesystem(String id)
  9. getNestedSet(K1 key, ConcurrentMap> set)