Package org.zkoss.util

Examples of org.zkoss.util.CacheMap$ValueIter


  public String getDownloadMediaURI(Media media, String pathInfo) {
    if (media == null)
      throw new IllegalArgumentException("null media");

    if (_meds == null) {
      _meds = new CacheMap();
      _meds.setMaxSize(1024);
      _meds.setLifetime(15 * 60 * 1000);
        //15 minutes (CONSIDER: configurable)
    } else {
      housekeep();
View Full Code Here


    final String PGPATH_CACHE = "org.zkoss.web.pgpath.cache";
    Map map = (Map)ctx.getAttribute(PGPATH_CACHE);
    if (map == null) {
      map = Collections.synchronizedMap( //10 min
        new CacheMap(500, 10*60*1000));
      ctx.setAttribute(PGPATH_CACHE, map);
    }

    final Locale locale = Locales.getCurrent();
    final URIIndex index = new URIIndex(pgpath, locale);
View Full Code Here

TOP

Related Classes of org.zkoss.util.CacheMap$ValueIter

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.