al=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block">Connect to a cluster.  If the cluster is not ready, retry connection up to a given timeout.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>duration</code> - the timeout</dd><dd><code>timeUnit</code> - the units of the timeout</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/7/docs/api/java/util/concurrent/TimeoutException.html?is-extern