Package net.rubyeye.xmemcached.command.binary

Examples of net.rubyeye.xmemcached.command.binary.BinaryGetMultiCommand


    for (IoBuffer buffer : bufferList) {
      mergedBuffer.put(buffer.buf());
    }
    mergedBuffer.flip();

    Command resultCommand = new BinaryGetMultiCommand(key,
        CommandType.GET_MANY, latch);
    resultCommand.setIoBuffer(mergedBuffer);
    this.sendCommand(resultCommand);
    return resultCommand;
  }
View Full Code Here


    IoBuffer mergedBuffer = IoBuffer.allocate(totalLength);
    for (IoBuffer buffer : bufferList) {
      mergedBuffer.put(buffer.buf());
    }
    mergedBuffer.flip();
    Command resultCommand = new BinaryGetMultiCommand(key, cmdType, latch);
    resultCommand.setIoBuffer(mergedBuffer);
    return resultCommand;
  }
View Full Code Here

      cmd.setWriteFuture(new FutureImpl<Boolean>());
      cmd.setMergeCount(mergeCount);
      cmd.setIoBuffer(IoBuffer.wrap(buf));
      return cmd;
    } else {
      BinaryGetMultiCommand result = (BinaryGetMultiCommand) commandCollector
          .getResult();
      result.setMergeCount(mergeCount);
      result.setMergeCommands(mergeCommands);
      return result;
    }
  }
View Full Code Here

      for (IoBuffer buffer : bufferList) {
        byte[] ba = buffer.array();
        System.arraycopy(ba, 0, buf, offset, ba.length);
        offset += ba.length;
      }
      BinaryGetMultiCommand resultCommand = new BinaryGetMultiCommand(
          null, CommandType.GET_MANY, new CountDownLatch(1));
      resultCommand.setIoBuffer(IoBuffer.wrap(buf));
      return resultCommand;
    }
View Full Code Here

    IoBuffer mergedBuffer = IoBuffer.allocate(totalLength);
    for (IoBuffer buffer : bufferList) {
      mergedBuffer.put(buffer.buf());
    }
    mergedBuffer.flip();
    Command resultCommand = new BinaryGetMultiCommand(key, cmdType, latch);
    resultCommand.setIoBuffer(mergedBuffer);
    return resultCommand;
  }
View Full Code Here

      cmd.setWriteFuture(new FutureImpl<Boolean>());
      cmd.setMergeCount(mergeCount);
      cmd.setIoBuffer(IoBuffer.wrap(buf));
      return cmd;
    } else {
      BinaryGetMultiCommand result = (BinaryGetMultiCommand) commandCollector
          .getResult();
      result.setMergeCount(mergeCount);
      result.setMergeCommands(mergeCommands);
      return result;
    }
  }
View Full Code Here

      for (IoBuffer buffer : this.bufferList) {
        byte[] ba = buffer.array();
        System.arraycopy(ba, 0, buf, offset, ba.length);
        offset += ba.length;
      }
      BinaryGetMultiCommand resultCommand = new BinaryGetMultiCommand(
          null, CommandType.GET_MANY, new CountDownLatch(1));
      resultCommand.setIoBuffer(IoBuffer.wrap(buf));
      return resultCommand;
    }
View Full Code Here

TOP

Related Classes of net.rubyeye.xmemcached.command.binary.BinaryGetMultiCommand

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.