Package org.springmodules.cache.provider

Examples of org.springmodules.cache.provider.CacheAccessException


      if (cache == null) {
        cache = (IMap) CacheFinder.find(name);
        cachesHolder.put(name, cache);
      }
    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }

    if (cache == null) {
      throw new CacheNotFoundException(name);
    }
View Full Code Here


          cache.clear();
        }
      } catch (CacheException exception) {
        cacheException = exception;
      } catch (Exception exception) {
        cacheException = new CacheAccessException(exception);
      }

      if (cacheException != null) {
        throw cacheException;
      }
View Full Code Here

        cachedObject = cache.get(key, waitForResponse.longValue());
      } else {
        cachedObject = cache.get(key);
      }
    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }
    return cachedObject;
  }
View Full Code Here

        cache.put(key, obj, timeToLive.longValue());
      } else {
        cache.put(key, obj);
      }
    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }
  }
View Full Code Here

    IMap cache = getCache(model);
    try {
      cache.remove(key);

    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }
  }
View Full Code Here

        } else {
          cache.removeAll();
        }
      }
    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }
  }
View Full Code Here

      if (cacheElement != null) {
        cachedObject = cacheElement.getVal();
      }

    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }

    return cachedObject;
  }
View Full Code Here

    try {
      cache.update(newCacheElement);

    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }
  }
View Full Code Here

    try {
      cache.remove(newKey);

    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }
  }
View Full Code Here

    try {
      if (cacheManager.cacheExists(name)) {
        cache = cacheManager.getCache(name);
      }
    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }

    if (cache == null) {
      throw new CacheNotFoundException(name);
    }
View Full Code Here

TOP

Related Classes of org.springmodules.cache.provider.CacheAccessException

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.