Package org.jboss.cache.eviction

Examples of org.jboss.cache.eviction.EvictionEvent


   public EvictionEvent registerEvictionEvent(Fqn fqn, EvictionEvent.Type eventType, int elementDifference)
   {
      if (evictionAlgorithm.canIgnoreEvent(eventType)) return null;

      EvictionEvent event = new EvictionEvent(fqn, eventType, elementDifference);
      registerEvictionEvent(event);
      return event;
   }
View Full Code Here


   @SuppressWarnings("deprecation")
   public EvictedEventNode takeLastEventNode()
   {
      try
      {
         EvictionEvent ee = getEvictionEventQueue().poll(0, TimeUnit.SECONDS);
         if (ee instanceof EvictedEventNode) return (EvictedEventNode) ee;
         else return new EvictedEventNode(ee);
      }
      catch (InterruptedException e)
      {
View Full Code Here

TOP

Related Classes of org.jboss.cache.eviction.EvictionEvent

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.