Examples of HazelcastCacheManager


Examples of com.alu.e3.common.caching.HazelcastCacheManager

  @Before
  public void setUp() throws Exception {
    dataManager = new DataManager();
    TopologyClient topologyClient = new TopologyClient();
    dataManager.setTopologyClient(topologyClient);
    cacheManager = new HazelcastCacheManager();
    cacheManager.setTopologyClient(topologyClient);
    cacheManager.init(true);
    dataManager.setCacheManager(cacheManager);
    dataManager.init();
  }
View Full Code Here

Examples of org.wso2.carbon.clustering.hazelcast.jsr107.HazelcastCacheManager

*/
public class EvictionUtil {

    public static void evict(CacheImpl cache, EvictionAlgorithm algorithm) {

        HazelcastCacheManager cacheManager = (HazelcastCacheManager) cache.getCacheManager();
        int ownerTenantId = cacheManager.getOwnerTenantId();
        String cacheManagerName = cacheManager.getName();
        String cacheName = cache.getName();
        synchronized ((ownerTenantId + "." + cacheManagerName + "." + cacheName).intern()) {
            algorithm.evict(cache);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.