Package org.infinispan.container.entries

Examples of org.infinispan.container.entries.InternalNullEntry


   @Override
   public InternalCacheEntry remove(Object k) {
      InternalCacheEntry e;
      if (isAsyncStore) {
         e = entries.replace(k, new InternalNullEntry(asyncStore));
      } else {
         e = entries.remove(k);
      }
      return e == null || (e.canExpire() && e.isExpired(System.currentTimeMillis())) ? null : e;
   }
View Full Code Here


   public void purgeExpired() {
      long currentTimeMillis = System.currentTimeMillis();
      for (Iterator<InternalCacheEntry> purgeCandidates = entries.values().iterator(); purgeCandidates.hasNext();) {
         InternalCacheEntry e = purgeCandidates.next();
         if (isAsyncStore && e instanceof InternalNullEntry) {
            InternalNullEntry nullEntry = (InternalNullEntry) e;
            if (nullEntry.isExpired(asyncStore.getAsyncProcessorId())) {
               purgeCandidates.remove();
               continue;
            }
         }
View Full Code Here

TOP

Related Classes of org.infinispan.container.entries.InternalNullEntry

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.