Examples of cacheExists()


Examples of org.infinispan.manager.EmbeddedCacheManager.cacheExists()

    @Override
    public <K, V> Cache<K, V> getCache(ServiceRegistry registry, LocalDistributableSessionManager manager) {
        EmbeddedCacheManager container = (EmbeddedCacheManager) registry.getRequiredService(this.provider.getServiceName(manager.getReplicationConfig())).getValue();
        String cacheName = manager.getEngineName();
        synchronized (cacheName) {
            if (!container.cacheExists(cacheName)) {
                container.defineConfiguration(cacheName, CacheContainer.DEFAULT_CACHE_NAME, new Configuration());
            }
        }
        return container.getCache(cacheName);
    }
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.