Package net.rubyeye.xmemcached.codec

Examples of net.rubyeye.xmemcached.codec.MemcachedCodecFactory


    this.connector = this.newConnector(bufferAllocator, configuration,
        this.sessionLocator, this.commandFactory,
        this.connectionPoolSize, this.maxQueuedNoReplyOperations);
    this.memcachedHandler = new MemcachedHandler(this);
    this.connector.setHandler(this.memcachedHandler);
    this.connector.setCodecFactory(new MemcachedCodecFactory());
    this.connector.setSessionTimeout(-1);
    this.connector.setSocketOptions(socketOptions);
    if (this.isFailureMode()) {
      log.warn("XMemcachedClient in failure mode.");
    }
View Full Code Here


    this.connector = this.newConnector(bufferAllocator, configuration,
        this.sessionLocator, this.commandFactory,
        this.connectionPoolSize);
    this.memcachedHandler = new MemcachedHandler(this);
    this.connector.setHandler(this.memcachedHandler);
    this.connector.setCodecFactory(new MemcachedCodecFactory());
    this.connector.setSessionTimeout(-1);
    this.connector.setSocketOptions(socketOptions);
    if (this.isFailureMode()) {
      log.warn("XMemcachedClient in failure mode.");
    }
View Full Code Here

public class MemcachedDecoderUnitTest extends TestCase {
  private Decoder decoder;

  public void testDecode() {
    decoder = new MemcachedCodecFactory().getDecoder();
    MemcachedTCPSession session = buildSession();
    Command versionCommand = new TextCommandFactory().createVersionCommand(
        new CountDownLatch(1), null);
    session.addCommand(versionCommand);
    Command decodedCommand = (Command) decoder.decode(IoBuffer
View Full Code Here

public class MemcachedEncoderUnitTest extends TestCase {
  private Encoder encoder;

  public void testEncode() {
    this.encoder = new MemcachedCodecFactory().getEncoder();
    Command command = new TextCommandFactory().createVersionCommand(
        new CountDownLatch(1), null);
    command.encode();
    IoBuffer buffer = this.encoder.encode(command, null);
    assertEquals(buffer.buf(), ServerAddressAware.VERSION);
View Full Code Here

TOP

Related Classes of net.rubyeye.xmemcached.codec.MemcachedCodecFactory

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.