Package org.eclipse.jetty.nosql.memcached.spymemcached

Examples of org.eclipse.jetty.nosql.memcached.spymemcached.SpyMemcachedClientFactory


  @Override
  protected AbstractKeyValueStoreClient newClient(String serverString) {
    synchronized(this) {
      if (_clientFactory == null) {
        _clientFactory = new SpyMemcachedClientFactory(); // default client
      }
    }
    AbstractKeyValueStoreClient client = _clientFactory.create(serverString);
    client.setTimeoutInMs(getTimeoutInMs());
    return client;
View Full Code Here


                    clientFactory = new HerokuSpyMemcachedClientFactory();
                } else {
                    clientFactory = new BinarySpyMemcachedClientFactory();
                }
            } else {
                clientFactory = new SpyMemcachedClientFactory();
            }
        } else if (cfName.contains("xmemcached")) {
            if (cfName.contains("binary")) {
              if (cfName.contains("heroku")) {
                  clientFactory = new BinaryXMemcachedClientFactory(); // FIXME: create HerokuXMemcachedClientFactory
              } else {
                  clientFactory = new BinaryXMemcachedClientFactory();
              }
            } else {
                clientFactory = new XMemcachedClientFactory();
            }
        } else {
            if ("true".equals(useMock)) {
                clientFactory = new HashMapClientFactory();
            } else {
                if ("true".equals(useBinary)) {
                    clientFactory = new BinarySpyMemcachedClientFactory();
                } else {
                    clientFactory = new SpyMemcachedClientFactory();
                }
            }
        }
        return clientFactory;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.nosql.memcached.spymemcached.SpyMemcachedClientFactory

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.