Package railo.commons.io.cache.exp

Examples of railo.commons.io.cache.exp.CacheException


  @Override
  public Object getValue(String key) throws CacheException {
    try {
      misses++;
      Element el = getCache().get(key);
      if(el==null)throw new CacheException("there is no entry in cache with key ["+key+"]");
      misses--;
      hits++;
      return el.getObjectValue();
    }
    catch(IllegalStateException ise) {
      throw new CacheException(ise.getMessage());
    }
    catch(net.sf.ehcache.CacheException ce) {
      throw new CacheException(ce.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of railo.commons.io.cache.exp.CacheException

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.