public MemcachedCluster(IEnumerable<IPEndPoint> endpoints, IBufferAllocator allocator, INodeLocator locator, IReconnectPolicy reconnectPolicy, IFailurePolicy failurePolicy, Func<ISocket> socketFactory) : base(endpoints, locator, reconnectPolicy) { this.allocator = allocator; this.failurePolicy = failurePolicy; this.socketFactory = socketFactory; }
public MemcachedCluster(IEnumerable <IPEndPoint> endpoints, IBufferAllocator allocator, INodeLocator locator, IReconnectPolicy reconnectPolicy, IFailurePolicy failurePolicy, Func <ISocket> socketFactory) : base(endpoints, locator, reconnectPolicy) { this.allocator = allocator; this.failurePolicy = failurePolicy; this.socketFactory = socketFactory; }
private NodeQueue ioQueue; // the nodes that has IO pending protected ClusterBase(IEnumerable<IPEndPoint> endpoints, INodeLocator locator, IReconnectPolicy reconnectPolicy) { this.endpoints = endpoints.ToArray(); this.locator = locator; this.reconnectPolicy = reconnectPolicy; this.ReconnectLock = new Object(); this.worker = new Thread(Worker) { Name = "IO Thread {" + String.Join(", ", endpoints.Select(ep => ep.ToString())) + "}" }; this.shutdownToken = new CancellationTokenSource(); this.workerIsDone = new ManualResetEventSlim(false); }
private NodeQueue ioQueue; // the nodes that has IO pending protected ClusterBase(IEnumerable <IPEndPoint> endpoints, INodeLocator locator, IReconnectPolicy reconnectPolicy) { this.endpoints = endpoints.ToArray(); this.locator = locator; this.reconnectPolicy = reconnectPolicy; this.ReconnectLock = new Object(); this.worker = new Thread(Worker) { Name = "IO Thread {" + String.Join(", ", endpoints.Select(ep => ep.ToString())) + "}" }; this.shutdownToken = new CancellationTokenSource(); this.workerIsDone = new ManualResetEventSlim(false); }