Examples of TerracottaConfiguration


Examples of net.sf.ehcache.config.TerracottaConfiguration

   */
  public static void validateEhcache(Ehcache cache) throws CacheException {
    final CacheConfiguration cacheConfig = cache.getCacheConfiguration();

    if ( cacheConfig.isTerracottaClustered() ) {
      final TerracottaConfiguration tcConfig = cacheConfig.getTerracottaConfiguration();
      switch ( tcConfig.getValueMode() ) {
        case IDENTITY: {
          throw new CacheException(
              "The clustered Hibernate cache " + cache.getName() + " is using IDENTITY value mode.\n"
                  + "Identity value mode cannot be used with Hibernate cache regions."
          );
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.