Package org.apache.solr.common
Class SolrCloseableLatch
- java.lang.Object
- 
- org.apache.solr.common.SolrCloseableLatch
 
- 
 public class SolrCloseableLatch extends Object This class mimics the operation ofCountDownLatch, but it also periodically checks the state of the providedSolrCloseableand terminates the wait if it's closed by throwing anInterruptedException.
- 
- 
Constructor SummaryConstructors Constructor Description SolrCloseableLatch(int count, SolrCloseable closeable)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawait()booleanawait(long timeout, TimeUnit unit)voidcountDown()longgetCount()
 
- 
- 
- 
Constructor Detail- 
SolrCloseableLatchpublic SolrCloseableLatch(int count, SolrCloseable closeable)
 
- 
 - 
Method Detail- 
awaitpublic void await() throws InterruptedException- Throws:
- InterruptedException
 
 - 
awaitpublic boolean await(long timeout, TimeUnit unit) throws InterruptedException- Throws:
- InterruptedException
 
 - 
countDownpublic void countDown() 
 - 
getCountpublic long getCount() 
 
- 
 
-