internal void EnsureDiscovery() { lock (_syncLock) { if (!_clusterView.IsStale()) { return; } var newView = NewClusterView(); _clusterConnectionPool.Update(newView.All()); _clusterView = newView; } }
private void EnsureRoutingTableForMode(AccessMode mode) { lock (_syncLock) { if (!IsRoutingTableStale(_routingTable, mode)) { return; } var routingTable = UpdateRoutingTableWithInitialUriFallback(); _clusterConnectionPool.Update(routingTable.All()); _routingTable = routingTable; _logger?.Info($"Updated routingTable to be {_routingTable}"); } }
public void UpdateConnectionPool(IEnumerable <Uri> added, IEnumerable <Uri> removed) { _clusterConnectionPool.Update(added, removed); }