Examples of ExistsCommand


Examples of com.aerospike.client.command.ExistsCommand

   * @param key          unique record identifier
   * @return            whether record exists or not
   * @throws AerospikeException  if command fails
   */
  public final boolean exists(Policy policy, Key key) throws AerospikeException {
    ExistsCommand command = new ExistsCommand(cluster, policy, key);
    command.execute();
    return command.exists();
  }
View Full Code Here

Examples of com.aerospike.client.command.ExistsCommand

   * @param key          unique record identifier
   * @return            whether record exists or not
   * @throws AerospikeException  if command fails
   */
  public final boolean exists(Policy policy, Key key) throws AerospikeException {
    ExistsCommand command = new ExistsCommand(cluster, policy, key);
    command.execute();
    return command.exists();
  }
View Full Code Here

Examples of com.aerospike.client.command.ExistsCommand

   * @param key          unique record identifier
   * @return            whether record exists or not
   * @throws AerospikeException  if command fails
   */
  public final boolean exists(Policy policy, Key key) throws AerospikeException {
    ExistsCommand command = new ExistsCommand(cluster, policy, key);
    command.execute();
    return command.exists();
  }
View Full Code Here

Examples of com.aerospike.client.command.ExistsCommand

   */
  public final boolean exists(Policy policy, Key key) throws AerospikeException {
    if (policy == null) {
      policy = readPolicyDefault;
    }
    ExistsCommand command = new ExistsCommand(cluster, policy, key);
    command.execute();
    return command.exists();
  }
View Full Code Here

Examples of com.aerospike.client.command.ExistsCommand

   */
  public final boolean exists(Policy policy, Key key) throws AerospikeException {
    if (policy == null) {
      policy = readPolicyDefault;
    }
    ExistsCommand command = new ExistsCommand(cluster, policy, key);
    command.execute();
    return command.exists();
  }
View Full Code Here

Examples of org.jboss.cache.commands.read.ExistsCommand

    }

    lock.acquireLock(name, false);
    try {
      init();
      ExistsCommand command = commandsFactory.buildExistsNodeCommand(name);
      List resps = callRemote(command);
      boolean result = false;
      for (Object o:resps) {
        if (o != null && !(o instanceof Exception)) {
          List<Boolean> clusteredGetResp = (List<Boolean>) o;
View Full Code Here

Examples of org.jboss.cache.commands.read.ExistsCommand

   {
      if (usingMvcc)
      {
         InvocationContext ctx = invocationContextContainer.get();
         cacheStatusCheck(ctx);
         ExistsCommand command = commandsFactory.buildExistsNodeCommand(fqn);
         return (Boolean) invoker.invoke(ctx, command);
      }
      else
      {
         return peek(fqn, false) != null;
View Full Code Here

Examples of org.jboss.cache.commands.read.ExistsCommand

      if (!isCacheReady() || !cache.getInvocationContext().isOriginLocal()) return false;

      lock.acquireLock(name, false);
      try
      {
         ExistsCommand command = commandsFactory.buildExistsNodeCommand(name);
         Object resp = callRemote(command);
         return resp != null && (Boolean) resp;
      }
      finally
      {
View Full Code Here

Examples of org.jboss.cache.commands.read.ExistsCommand

      return command;
   }

   public ExistsCommand buildExistsNodeCommand(Fqn fqn)
   {
      ExistsCommand command = new ExistsCommand(fqn);
      command.initialize(dataContainer);
      return command;
   }
View Full Code Here

Examples of org.jboss.cache.commands.read.ExistsCommand

      ReplicableCommand command;
      switch (id)
      {
         case ExistsCommand.METHOD_ID:
         {
            ExistsCommand result = new ExistsCommand();
            result.initialize(dataContainer);
            command = result;
            break;
         }
         case GetChildrenNamesCommand.METHOD_ID:
         {
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.