Package org.infinispan.persistence.modifications

Examples of org.infinispan.persistence.modifications.Modification


   @Override
   public void stop() {}

   @Override
   public MarshalledEntry load(Object key) {
      Modification mod = state.get().get(key);
      if (mod != null) {
         switch (mod.getType()) {
            case REMOVE:
            case CLEAR:
               return null;
            case STORE:
               return ((Store) mod).getStoredValue();
View Full Code Here


   }


   @Override
   public boolean contains(Object key) {
      Modification mod = state.get().get(key);
      if (mod != null)
         return mod.getType() == Modification.Type.STORE;

      return super.contains(key);
   }
View Full Code Here

    * @return the Modification for the specified key, or <code>CLEAR</code> if the state was
    *         cleared, or <code>null</code> if the key is not in the state map
    */
   Modification get(Object key) {
      for (State state = this; state != null; state = state.next) {
         Modification mod = state.modifications.get(key);
         if (mod != null)
            return mod;
         else if (state.clear)
            return CLEAR;
      }
View Full Code Here

   @Override
   public void stop() {}

   @Override
   public MarshalledEntry load(Object key) {
      Modification mod = state.get().get(key);
      if (mod != null) {
         switch (mod.getType()) {
            case REMOVE:
            case CLEAR:
               return null;
            case STORE:
               return ((Store) mod).getStoredValue();
View Full Code Here

   }


   @Override
   public boolean contains(Object key) {
      Modification mod = state.get().get(key);
      if (mod != null)
         return mod.getType() == Modification.Type.STORE;

      return super.contains(key);
   }
View Full Code Here

TOP

Related Classes of org.infinispan.persistence.modifications.Modification

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.