Package org.infinispan.context

Examples of org.infinispan.context.Flag


            ((TxInvocationContext) ctx).getCacheTransaction().hasModification(ClearCommand.class) :
            command instanceof ClearCommand;
   }

   protected final void commitContextEntries(InvocationContext ctx, FlagAffectedCommand command, Metadata metadata) {
      final Flag stateTransferFlag = extractStateTransferFlag(ctx, command);

      if (stateTransferFlag == null) {
         //it is a normal operation
         stopStateTransferIfNeeded(ctx, command);
      }
View Full Code Here


            ((TxInvocationContext) ctx).getCacheTransaction().hasModification(ClearCommand.class) :
            command instanceof ClearCommand;
   }

   protected final void commitContextEntries(InvocationContext ctx, FlagAffectedCommand command, Metadata metadata) {
      final Flag stateTransferFlag = extractStateTransferFlag(ctx, command);

      if (stateTransferFlag == null) {
         //it is a normal operation
         stopStateTransferIfNeeded(ctx, command);
      }
View Full Code Here

         return;
      GridFile.Metadata md = metadata.get(absolutePath);
      if (md == null)
         return;

      Flag flag = synchronous ? FORCE_SYNCHRONOUS : FORCE_ASYNCHRONOUS;
      AdvancedCache<String,byte[]> advancedCache = data.getAdvancedCache().withFlags(flag);
      int numChunks = md.getLength() / md.getChunkSize() + 1;
      for (int i = 0; i < numChunks; i++)
         advancedCache.remove(FileChunkMapper.getChunkKey(absolutePath, i));
   }
View Full Code Here

         return;
      GridFile.Metadata md = metadata.get(absolutePath);
      if (md == null)
         return;

      Flag flag = synchronous ? FORCE_SYNCHRONOUS : FORCE_ASYNCHRONOUS;
      AdvancedCache<String,byte[]> advancedCache = data.getAdvancedCache().withFlags(flag);
      int numChunks = md.getLength() / md.getChunkSize() + 1;
      for (int i = 0; i < numChunks; i++)
         advancedCache.remove(FileChunkMapper.getChunkKey(absolutePath, i));
   }
View Full Code Here

            ((TxInvocationContext) ctx).getCacheTransaction().hasModification(ClearCommand.class) :
            command instanceof ClearCommand;
   }

   protected final void commitContextEntries(InvocationContext ctx, FlagAffectedCommand command, Metadata metadata) {
      final Flag stateTransferFlag = extractStateTransferFlag(ctx, command);

      if (stateTransferFlag == null) {
         //it is a normal operation
         stopStateTransferIfNeeded(ctx, command);
      }
View Full Code Here

            ((TxInvocationContext) ctx).getCacheTransaction().hasModification(ClearCommand.class) :
            command instanceof ClearCommand;
   }

   protected final void commitContextEntries(InvocationContext ctx, FlagAffectedCommand command, Metadata metadata) {
      final Flag stateTransferFlag = extractStateTransferFlag(ctx, command);

      if (stateTransferFlag == null) {
         //it is a normal operation
         stopStateTransferIfNeeded(ctx, command);
      }
View Full Code Here

         return;
      GridFile.Metadata md = metadata.get(absolutePath);
      if (md == null)
         return;

      Flag flag = synchronous ? FORCE_SYNCHRONOUS : FORCE_ASYNCHRONOUS;
      AdvancedCache<String,byte[]> advancedCache = data.getAdvancedCache().withFlags(flag);
      int numChunks = md.getLength() / md.getChunkSize() + 1;
      for (int i = 0; i < numChunks; i++)
         advancedCache.remove(FileChunkMapper.getChunkKey(absolutePath, i));
   }
View Full Code Here

         return;
      GridFile.Metadata md = metadata.get(absolutePath);
      if (md == null)
         return;

      Flag flag = synchronous ? FORCE_SYNCHRONOUS : FORCE_ASYNCHRONOUS;
      AdvancedCache<String,byte[]> advancedCache = data.getAdvancedCache().withFlags(flag);
      int numChunks = md.getLength() / md.getChunkSize() + 1;
      for (int i = 0; i < numChunks; i++)
         advancedCache.remove(FileChunkMapper.getChunkKey(absolutePath, i));
   }
View Full Code Here

TOP

Related Classes of org.infinispan.context.Flag

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.