Examples of BinarySetMultiCommand


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

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

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

    }
    this.currentCmd = (Command) this.writeQueue.poll();
    this.currentCmd.encode();

    int limit = 100;
    BinarySetMultiCommand optimiezedCommand = (BinarySetMultiCommand) this.optimiezer
        .optimiezeSet(this.writeQueue, this.executingCmds, this.currentCmd, limit);
    assertEquals(optimiezedCommand.getMergeCount(),
        Math.round((double) limit / oneBufferSize));
  }
View Full Code Here

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

      cmd.setWriteFuture(new FutureImpl<Boolean>());
    }
    this.currentCmd = (Command) this.writeQueue.poll();
    this.currentCmd.encode();

    BinarySetMultiCommand optimiezedCommand = (BinarySetMultiCommand) this.optimiezer
        .optimiezeSet(this.writeQueue, this.executingCmds, this.currentCmd,
            Integer.MAX_VALUE);
    assertEquals(optimiezedCommand.getMergeCount(), 10);
  }
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.