Package net.rubyeye.xmemcached.command.text

Examples of net.rubyeye.xmemcached.command.text.TextStoreCommand


  @SuppressWarnings("unchecked")
  final Command createStoreCommand(String key, byte[] keyBytes, int exp,
      Object value, CommandType cmdType, boolean noreply,
      Transcoder transcoder) {
    return new TextStoreCommand(key, keyBytes, cmdType, new CountDownLatch(
        1), exp, -1, value, noreply, transcoder);
  }
View Full Code Here


    this.mocksControl.verify();
  }

  @Test
  public void testOnMessageSent_TextCommand_NoReply() {
    Command cmd = new TextStoreCommand(null, null, null, null, 1, 1, null,
        true, null);
    EasyMock.expect(this.memcachedClient.getProtocol()).andReturn(
        Protocol.Text);
    this.mocksControl.replay();
    this.handler.onMessageSent(this.session, cmd);
View Full Code Here

    this.mocksControl.verify();
  }

  @Test
  public void testOnMessageSent_TextCommand_NoReply() {
    Command cmd = new TextStoreCommand(null, null, CommandType.SET, null, 1, 1, null,
        true, null);
    EasyMock.expect(this.memcachedClient.getProtocol()).andReturn(
        Protocol.Text);
    this.mocksControl.replay();
    this.handler.onMessageSent(this.session, cmd);
View Full Code Here

  @SuppressWarnings("unchecked")
  final Command createStoreCommand(String key, byte[] keyBytes, int exp,
      Object value, CommandType cmdType, boolean noreply,
      Transcoder transcoder) {
    return new TextStoreCommand(key, keyBytes, cmdType, new CountDownLatch(
        1), exp, -1, value, noreply, transcoder);
  }
View Full Code Here

TOP

Related Classes of net.rubyeye.xmemcached.command.text.TextStoreCommand

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.