Package org.objectweb.speedo.usercache.lib

Examples of org.objectweb.speedo.usercache.lib.UserCacheImpl


  //------------------------------------------------//
 
  protected UserCache[] userCaches = new UserCache[0];

  protected synchronized UserCache addUserCache(String userCacheName, String[] fields, int id) {
      UserCacheImpl uc = new UserCacheImpl();
      uc.setName(userCacheName);
      uc.setIndexFieldNames(fields);
      uc.setId(id);
      uc.setActive(true);
      if (id >= userCaches.length) {
          UserCache[] newUserCaches = new UserCache[id+1];
          System.arraycopy(userCaches, 0, newUserCaches, 0, userCaches.length);
        userCaches = newUserCaches;
      }
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.usercache.lib.UserCacheImpl

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.