Package org.infinispan.atomic

Examples of org.infinispan.atomic.AtomicHashMap


   public DeltaAwareCacheEntry(Object key, DeltaAware value, CacheEntry wrappedEntry) {
      setValid(true);
      this.key = key;
      this.value = value;
      this.wrappedEntry = wrappedEntry;
      this.uncommittedChanges = new AtomicHashMap();
      this.deltas = new ArrayList<Delta>();
   }
View Full Code Here


      public void setCreator() {creator = Thread.currentThread();}

      public DeltaAware merge(DeltaAware d) {
         if (creator != Thread.currentThread())
            throw new RuntimeException("Induced!");
         return new AtomicHashMap();
      }
View Full Code Here

   public DeltaAwareCacheEntry(Object key, DeltaAware value, CacheEntry wrappedEntry) {
      setValid(true);
      this.key = key;
      this.value = value;
      this.wrappedEntry = wrappedEntry;
      this.uncommittedChanges = new AtomicHashMap();
      this.deltas = new ArrayList<Delta>();
   }
View Full Code Here

            log.tracef("Updating entry (key=%s removed=%s valid=%s changed=%s created=%s value=%s]", getKey(),
                      isRemoved(), isValid(), isChanged(), isCreated(), value);

         // Ugh!
         if (value instanceof AtomicHashMap) {
            AtomicHashMap ahm = (AtomicHashMap) value;
            ahm.commit();
            if (isRemoved() && !isEvicted()) ahm.markRemoved(true);
         }

         if (isRemoved()) {
            container.remove(key);
         } else if (value != null) {
View Full Code Here

      public void setCreator() {creator = Thread.currentThread();}

      public DeltaAware merge(DeltaAware d) {
         if (creator != Thread.currentThread())
            throw new RuntimeException("Induced!");
         return new AtomicHashMap();
      }
View Full Code Here

TOP

Related Classes of org.infinispan.atomic.AtomicHashMap

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.