@Override public NodeLocator createLocator(List<MemcachedNode> nodes) { return underlying.createLocator(nodes); }
@Override public NodeLocator createLocator(List<MemcachedNode> nodes) { return underlying.createLocator(nodes); }
/** * Construct a memcached connection. * * @param bufSize the size of the buffer used for reading from the server * @param f the factory that will provide an operation queue * @param a the addresses of the servers to connect to * @throws IOException if a connection attempt fails early */ public MemcachedConnection(int bufSize, ConnectionFactory f, List<InetSocketAddress> a, Collection<ConnectionObserver> obs, FailureMode fm, OperationFactory opfactory) throws IOException { this.f = f; connObservers.addAll(obs); reconnectQueue = new TreeMap<Long, MemcachedNode>(); addedQueue = new ConcurrentLinkedQueue<MemcachedNode>(); failureMode = fm; shouldOptimize = f.shouldOptimize(); maxDelay = f.getMaxReconnectDelay(); opFact = opfactory; timeoutExceptionThreshold = f.getTimeoutExceptionThreshold(); timeoutRatioThreshold = f.getTimeoutRatioThreshold(); selector = Selector.open(); List<MemcachedNode> connections = new ArrayList<MemcachedNode>(a.size()); for (SocketAddress sa : a) { connections.add(attachMemcachedNode(sa)); } locator = f.createLocator(connections); }
locator = f.createLocator(connections);
this.connectionFactory = f; List<MemcachedNode> connections = createConnections(a); locator = f.createLocator(connections); setName("Memcached IO over " + this); setDaemon(f.isDaemon());
locator = f.createLocator(connections);
locator=f.createLocator(connections);
locator=f.createLocator(connections);