You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<tdclass="summary">Refresh the list of nodes in the cluster.</td>
88
88
</tr>
89
89
<tr>
@@ -168,17 +168,31 @@ <h3>Usage:</h3>
168
168
</dd>
169
169
<dt>
170
170
<aname = "_Cluster:refresh"></a>
171
-
<strong>_Cluster:refresh ()</strong>
171
+
<strong>_Cluster:refresh (timeout)</strong>
172
172
</dt>
173
173
<dd>
174
174
Refresh the list of nodes in the cluster.
175
175
Queries one of the specified <code>contact_points</code> to retrieve the list of
176
176
available nodes in the cluster, and update the configured policies.
177
+
The query will use the timeout threshold specified in the <code>read_timeout</code>
178
+
option of the <ahref="../modules/resty.cassandra.cluster.html#_Cluster.new">new</a> method.
179
+
This method is safe be called at runtime, by multiple workers at the same
180
+
time, which can be useful to refresh the cluster topology when nodes are
181
+
added or removed from the cluster.
177
182
This method is automatically called upon the first query made to the
178
183
cluster (from <ahref="../modules/resty.cassandra.cluster.html#_Cluster:execute">execute</a>, <ahref="../modules/resty.cassandra.cluster.html#_Cluster:batch">batch</a> or <ahref="../modules/resty.cassandra.cluster.html#_Cluster:iterate">iterate</a>), but needs to be manually
0 commit comments