Package org.fjank.jcache

Examples of org.fjank.jcache.CacheObject.invalidate()


      }
        CacheObject obj = (CacheObject) acc.getRegion().get(key);
        if(obj==null) {
            return null;
        }
        obj.invalidate();
        return obj.get();
    }
    public Object remove(Object key, String group) {
        if (key==null || group==null) {
      throw new NullPointerException("This Map does not permit null keys.");
View Full Code Here


        }
        CacheObject object = (CacheObject) group2.get(key);
        if(object==null) {
            return null;
        }
        object.invalidate();
        return object.get();
    }
    /**Adds all elements in th map into FKache.
     * @param t the map which contains the elements to add.
     * @throws IllegalArgumentException if some aspect of the map prevents this operation to complete.
View Full Code Here

    public boolean remove(Object o) {
    if(!set.contains(o)) return false;
        if(o instanceof Map.Entry) {
          Map.Entry entry = (Entry) o;
          CacheObject obj = (CacheObject) entry.getValue();
          obj.invalidate();
          return true;
        }
    CacheObject obj = (CacheObject) group.get(o);
    if(obj==null) return false;
    obj.invalidate();
View Full Code Here

          obj.invalidate();
          return true;
        }
    CacheObject obj = (CacheObject) group.get(o);
    if(obj==null) return false;
    obj.invalidate();
    return true;
    }

    public boolean removeAll(Collection c) {
        /*naive implementation, but it works.*/
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.