Package net.rubyeye.xmemcached.impl

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


  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

    }
    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

    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

    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

    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

  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

    }
    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

    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

    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

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

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.