Package net.sf.ehcache.config.TerracottaConfiguration

Examples of net.sf.ehcache.config.TerracottaConfiguration.Consistency


                throw new CacheException("To be transactional, a Terracotta clustered cache needs to be in Serialization value mode");
            }

            final Store store;
            if (isTerracottaClustered()) {
                final Consistency consistency = getCacheConfiguration().getTerracottaConfiguration().getConsistency();
                final boolean coherent = getCacheConfiguration().getTerracottaConfiguration().isCoherent();
                if (getCacheConfiguration().isOverflowToOffHeap()) {
                    throw new InvalidConfigurationException(
                            "Terracotta clustered caches with local overflow to offheap are not supported yet."
                                    + " You can fix this by disabling overflow to offheap for clustered caches.");
View Full Code Here


    /**
     * Accessor
     */
    public String getTerracottaConsistency() {
        Consistency consistency = cacheConfiguration.getTerracottaConsistency();
        return consistency != null ? consistency.name() : "na";
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public String getTerracottaConsistency() {
        Consistency consistency = this.cache.getCacheConfiguration().getTerracottaConsistency();
        return consistency != null ? consistency.name() : "na";
    }
View Full Code Here

TOP

Related Classes of net.sf.ehcache.config.TerracottaConfiguration.Consistency

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.