Examples of GetKeyValueCommand


Examples of org.infinispan.commands.read.GetKeyValueCommand

      }
      return cachedSizeCommand;
   }

   public GetKeyValueCommand buildGetKeyValueCommand(Object key) {
      return new GetKeyValueCommand(key, notifier);
   }
View Full Code Here

Examples of org.infinispan.commands.read.GetKeyValueCommand

   }

   public final boolean containsKey(Object key, Flag... flags) {
      InvocationContext ctx = getInvocationContext();
      if (flags != null) ctx.setFlags(flags);
      GetKeyValueCommand command = commandsFactory.buildGetKeyValueCommand(key);
      Object response = invoker.invoke(ctx, command);
      return response != null;
   }
View Full Code Here

Examples of org.infinispan.commands.read.GetKeyValueCommand

   @SuppressWarnings("unchecked")
   public final V get(Object key, Flag... flags) {
      InvocationContext ctx = getInvocationContext();
      if (flags != null) ctx.setFlags(flags);
      GetKeyValueCommand command = commandsFactory.buildGetKeyValueCommand(key);
      return (V) invoker.invoke(ctx, command);
   }
View Full Code Here

Examples of org.infinispan.commands.read.GetKeyValueCommand

               break;
            case ReplaceCommand.COMMAND_ID:
               command = new ReplaceCommand();
               break;
            case GetKeyValueCommand.COMMAND_ID:
               command = new GetKeyValueCommand();
               break;
            case ClearCommand.COMMAND_ID:
               command = new ClearCommand();
               break;
            case InvalidateCommand.COMMAND_ID:
View Full Code Here

Examples of org.infinispan.commands.read.GetKeyValueCommand

   }

   final boolean containsKey(Object key, EnumSet<Flag> explicitFlags, ClassLoader explicitClassLoader) {
      assertKeyNotNull(key);
      InvocationContext ctx = getInvocationContextForRead(null, explicitClassLoader, 1);
      GetKeyValueCommand command = commandsFactory.buildGetKeyValueCommand(key, explicitFlags, false);
      Object response = invoker.invoke(ctx, command);
      return response != null;
   }
View Full Code Here

Examples of org.infinispan.commands.read.GetKeyValueCommand

   @SuppressWarnings("unchecked")
   final V get(Object key, EnumSet<Flag> explicitFlags, ClassLoader explicitClassLoader) {
      assertKeyNotNull(key);
      InvocationContext ctx = getInvocationContextForRead(null, explicitClassLoader, 1);
      GetKeyValueCommand command = commandsFactory.buildGetKeyValueCommand(key, explicitFlags, false);
      return (V) invoker.invoke(ctx, command);
   }
View Full Code Here

Examples of org.infinispan.commands.read.GetKeyValueCommand

   @Override
   public final CacheEntry getCacheEntry(Object key, EnumSet<Flag> explicitFlags, ClassLoader explicitClassLoader) {
      assertKeyNotNull(key);
      InvocationContext ctx = getInvocationContextForRead(null, explicitClassLoader, 1);
      GetKeyValueCommand command = commandsFactory.buildGetKeyValueCommand(key, explicitFlags, true);
      Object ret = invoker.invoke(ctx, command);
      return (CacheEntry) ret;
   }
View Full Code Here

Examples of org.infinispan.commands.read.GetKeyValueCommand

      InvocationContext ctx = mock(InvocationContext.class);
      when(ctx.isOriginLocal()).thenReturn(true);
      when(ctx.isInTxScope()).thenReturn(false);

      GetKeyValueCommand getKeyValueCommand = new GetKeyValueCommand("theKey", null);

      Object retVal = replInterceptor.visitGetKeyValueCommand(ctx, getKeyValueCommand);
      assertEquals("theValue", retVal);
   }
View Full Code Here

Examples of org.infinispan.commands.read.GetKeyValueCommand

   }

   public final boolean containsKey(Object key) {
      assertKeyNotNull(key);
      InvocationContext ctx = getInvocationContext(false);
      GetKeyValueCommand command = commandsFactory.buildGetKeyValueCommand(key);
      Object response = invoker.invoke(ctx, command);
      return response != null;
   }
View Full Code Here

Examples of org.infinispan.commands.read.GetKeyValueCommand

   @SuppressWarnings("unchecked")
   public final V get(Object key) {
      assertKeyNotNull(key);
      InvocationContext ctx = getInvocationContext(false);
      GetKeyValueCommand command = commandsFactory.buildGetKeyValueCommand(key);
      return (V) invoker.invoke(ctx, command);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.