Package com.caucho.distcache

Examples of com.caucho.distcache.ClusterCache


   */
  public ClusterCache getSystemStore()
  {
    synchronized (this) {
      if (_systemStore == null) {
        _systemStore = new ClusterCache("resin:system");
        _systemStore.setGuid("resin:system");
        // XXX: need to set reliability values
      }
    }

View Full Code Here


  public ClusterSingleSignon(String name)
  {
    _cache = AbstractCache.getMatchingCache("resin:single-signon:" + name);
   
    if (_cache == null) {
      _cache = new ClusterCache();
      _cache.setExpireTimeoutMillis(24 * 3600 * 1000L);
      _cache.setName("resin:single-signon:" + name);
   
      _cache.init();
    }
View Full Code Here

   * Creates a new ResinCache for hibernate.
   */
  public Cache buildCache(String regionName, Properties properties)
    throws CacheException
  {
    ClusterCache cache = new ClusterCache();
    cache.setName("hibernate:" + regionName);
    cache.setExpireTimeoutMillis(1 * DAY);
    cache.setLocalReadTimeoutMillis(1000L);
    cache.init();

    return new ResinCache(regionName, cache);
  }
View Full Code Here

    this("resin:single-signon");
  }

  public ClusterSingleSignon(String name)
  {
    _cache = new ClusterCache();
    _cache.setExpireTimeoutMillis(24 * 3600 * 1000L);

    setName(name);

    init();
View Full Code Here

   */
  public ClusterCache getSystemStore()
  {
    synchronized (this) {
      if (_systemStore == null) {
        _systemStore = new ClusterCache("resin:system");
        _systemStore.setGuid("resin:system");
        // XXX: need to set reliability values
      }
    }

View Full Code Here

   * Creates a new ResinCache for hibernate.
   */
  public Cache buildCache(String regionName, Properties properties)
    throws CacheException
  {
    ClusterCache cache = new ClusterCache();
    cache.setName("hibernate:" + regionName);
    cache.setExpireTimeoutMillis(1 * DAY);
    cache.setLocalReadTimeoutMillis(1000L);
    cache.init();

    return new ResinCache(regionName, cache);
  }
View Full Code Here

TOP

Related Classes of com.caucho.distcache.ClusterCache

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.