[jboss-user] [JBoss Cache: Core Edition] - Re: Option to remove persistent data is a valid use case

genman do-not-reply at jboss.com
Tue Jul 29 17:43:15 EDT 2008


In your eviction configuration, you can set the "EvictionPolicyClass" and define what the method does:


  | public abstract class BaseEvictionPolicy implements EvictionPolicy {
  | 
  |    /**
  |     * Evict the node under given Fqn from cache.
  |     *
  |     * @param fqn The fqn of a node in cache.
  |     * @throws Exception
  |     */
  |    public void evict(Fqn fqn) throws Exception
  |    {
  |       cache_.evict(fqn, false);
  |    }
  | 

You could override this method to "remove" the data instead. Maybe there should be a flag as you suggest? If you can create a good patch and test case, generate a JIRA issue and attach the patch.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167452#4167452

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167452



More information about the jboss-user mailing list