Examples of ArrayMemcachedSessionLocator


Examples of net.rubyeye.xmemcached.impl.ArrayMemcachedSessionLocator

    super();
    if (weight <= 0) {
      throw new IllegalArgumentException("weight<=0");
    }
    this.checkServerPort(host, port);
    this.buildConnector(new ArrayMemcachedSessionLocator(),
        new SimpleBufferAllocator(),
        XMemcachedClientBuilder.getDefaultConfiguration(),
        XMemcachedClientBuilder.getDefaultSocketOptions(),
        new TextCommandFactory(), new SerializingTranscoder());
    this.start0();
View Full Code Here

Examples of net.rubyeye.xmemcached.impl.ArrayMemcachedSessionLocator

  private void buildConnector(MemcachedSessionLocator locator,
      BufferAllocator bufferAllocator, Configuration configuration,
      Map<SocketOption, Object> socketOptions,
      CommandFactory commandFactory, Transcoder transcoder) {
    if (locator == null) {
      locator = new ArrayMemcachedSessionLocator();

    }
    if (bufferAllocator == null) {
      bufferAllocator = new SimpleBufferAllocator();
    }
View Full Code Here

Examples of net.rubyeye.xmemcached.impl.ArrayMemcachedSessionLocator

    }
    if (weight <= 0) {
      throw new IllegalArgumentException("weight<=0");
    }
    this.buildConnector(new ArrayMemcachedSessionLocator(),
        new SimpleBufferAllocator(),
        XMemcachedClientBuilder.getDefaultConfiguration(),
        XMemcachedClientBuilder.getDefaultSocketOptions(),
        new TextCommandFactory(), new SerializingTranscoder());
    this.start0();
View Full Code Here

Examples of net.rubyeye.xmemcached.impl.ArrayMemcachedSessionLocator

    this(inetSocketAddress, 1);
  }

  public XMemcachedClient() throws IOException {
    super();
    this.buildConnector(new ArrayMemcachedSessionLocator(),
        new SimpleBufferAllocator(),
        XMemcachedClientBuilder.getDefaultConfiguration(),
        XMemcachedClientBuilder.getDefaultSocketOptions(),
        new TextCommandFactory(), new SerializingTranscoder());
    this.start0();
View Full Code Here

Examples of net.rubyeye.xmemcached.impl.ArrayMemcachedSessionLocator

    super();
    if (addressList == null || addressList.isEmpty()) {
      throw new IllegalArgumentException("Empty address list");
    }
    BufferAllocator simpleBufferAllocator = new SimpleBufferAllocator();
    this.buildConnector(new ArrayMemcachedSessionLocator(),
        simpleBufferAllocator,
        XMemcachedClientBuilder.getDefaultConfiguration(),
        XMemcachedClientBuilder.getDefaultSocketOptions(),
        new TextCommandFactory(), new SerializingTranscoder());
    this.start0();
View Full Code Here

Examples of net.rubyeye.xmemcached.impl.ArrayMemcachedSessionLocator

    super();
    if (weight <= 0) {
      throw new IllegalArgumentException("weight<=0");
    }
    this.checkServerPort(host, port);
    this.buildConnector(new ArrayMemcachedSessionLocator(),
        new SimpleBufferAllocator(), XMemcachedClientBuilder
            .getDefaultConfiguration(), XMemcachedClientBuilder
            .getDefaultSocketOptions(), new TextCommandFactory(),
        new SerializingTranscoder());
    this.start0();
View Full Code Here

Examples of net.rubyeye.xmemcached.impl.ArrayMemcachedSessionLocator

  private void buildConnector(MemcachedSessionLocator locator,
      BufferAllocator bufferAllocator, Configuration configuration,
      Map<SocketOption, Object> socketOptions,
      CommandFactory commandFactory, Transcoder transcoder) {
    if (locator == null) {
      locator = new ArrayMemcachedSessionLocator();

    }
    if (bufferAllocator == null) {
      bufferAllocator = new SimpleBufferAllocator();
    }
View Full Code Here

Examples of net.rubyeye.xmemcached.impl.ArrayMemcachedSessionLocator

    }
    if (weight <= 0) {
      throw new IllegalArgumentException("weight<=0");
    }
    this.buildConnector(new ArrayMemcachedSessionLocator(),
        new SimpleBufferAllocator(), XMemcachedClientBuilder
            .getDefaultConfiguration(), XMemcachedClientBuilder
            .getDefaultSocketOptions(), new TextCommandFactory(),
        new SerializingTranscoder());
    this.start0();
View Full Code Here

Examples of net.rubyeye.xmemcached.impl.ArrayMemcachedSessionLocator

    this(inetSocketAddress, 1);
  }

  public XMemcachedClient() throws IOException {
    super();
    this.buildConnector(new ArrayMemcachedSessionLocator(),
        new SimpleBufferAllocator(), XMemcachedClientBuilder
            .getDefaultConfiguration(), XMemcachedClientBuilder
            .getDefaultSocketOptions(), new TextCommandFactory(),
        new SerializingTranscoder());
    this.start0();
View Full Code Here

Examples of net.rubyeye.xmemcached.impl.ArrayMemcachedSessionLocator

    super();
    if (addressList == null || addressList.isEmpty()) {
      throw new IllegalArgumentException("Empty address list");
    }
    BufferAllocator simpleBufferAllocator = new SimpleBufferAllocator();
    this.buildConnector(new ArrayMemcachedSessionLocator(),
        simpleBufferAllocator, XMemcachedClientBuilder
            .getDefaultConfiguration(), XMemcachedClientBuilder
            .getDefaultSocketOptions(), new TextCommandFactory(),
        new SerializingTranscoder());
    this.start0();
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.