private void DeactivateNode(IRiakNode node) { lock (node) { if (!_offlineNodes.Contains(node)) { _loadBalancer.RemoveNode(node); _offlineNodes.Enqueue(node); } } }
private void DeactivateNode(IRiakNode node) { lock (node) { if (!_offlineNodes.Contains(node)) { _loadBalancer.RemoveNode(node); node.ReleaseAll().ConfigureAwait(false).GetAwaiter().GetResult(); _offlineNodes.Enqueue(node); } } }
private void MaybeDeactivateNode(bool nodeOffline, IRiakNode node) { if (nodeOffline && node.CanMarkOffline) { lock (node) { if (!offlineNodes.Contains(node)) { loadBalancer.RemoveNode(node); offlineNodes.Enqueue(node); } } } }