Package net.rubyeye.xmemcached.impl

Examples of net.rubyeye.xmemcached.impl.KetamaMemcachedSessionLocator


      weights[i] = i + 1;
    }

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    return builder;
  }
View Full Code Here


public class ConsistentHashMemcachedClientTest extends StandardHashMemcachedClientTest {
  @Override
  public MemcachedClientBuilder createBuilder() throws Exception {
    MemcachedClientBuilder builder = new XMemcachedClientBuilder(AddrUtil
        .getAddresses(properties.getProperty("test.memcached.servers")));
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());

    return builder;
  }
View Full Code Here

    for (int i = 0; i < weights.length; i++) {
      weights[i] = i + 1;
    }
    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    return builder;
  }
View Full Code Here

    }

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setCommandFactory(new BinaryCommandFactory());
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    ByteUtils.testing = true;
    return builder;
  }
View Full Code Here

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setConnectionPoolSize(CONNECTION_POOL_SIZE);
    builder.setCommandFactory(new BinaryCommandFactory());
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    return builder;
  }
View Full Code Here

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setConnectionPoolSize(CONNECTION_POOL_SIZE);
    builder.setCommandFactory(new BinaryCommandFactory());
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    return builder;
  }
View Full Code Here

public class ConsistentHashMemcachedClientTest extends XMemcachedClientTest {
  @Override
  public MemcachedClientBuilder createBuilder() throws Exception {
    MemcachedClientBuilder builder = new XMemcachedClientBuilder(AddrUtil
        .getAddresses(properties.getProperty("test.memcached.servers")));
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());

    return builder;
  }
View Full Code Here

    for (int i = 0; i < weights.length; i++) {
      weights[i] = i + 1;
    }
    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    return builder;
  }
View Full Code Here

    }

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setCommandFactory(new BinaryCommandFactory());
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    ByteUtils.testing = true;
    return builder;
  }
View Full Code Here

      weights[i] = i + 1;
    }

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    return builder;
  }
View Full Code Here

TOP

Related Classes of net.rubyeye.xmemcached.impl.KetamaMemcachedSessionLocator

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.