Package net.sf.ehcache.cluster

Examples of net.sf.ehcache.cluster.ClusterSchemeNotAvailableException


     */
    public CacheCluster getCluster(ClusterScheme scheme) throws ClusterSchemeNotAvailableException {
        switch (scheme) {
            case TERRACOTTA:
                if (null == terracottaClient.getClusteredInstanceFactory()) {
                    throw new ClusterSchemeNotAvailableException(ClusterScheme.TERRACOTTA, "Terracotta cluster scheme is not available");
                }
                return terracottaClient.getCacheCluster();
            default:
                return NoopCacheCluster.INSTANCE;
        }
View Full Code Here

TOP

Related Classes of net.sf.ehcache.cluster.ClusterSchemeNotAvailableException

Copyright © 2018 www.massapicom. 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.