Package org.apache.solr.common
Class SolrCloseableLatch
java.lang.Object
org.apache.solr.common.SolrCloseableLatch
This class mimics the operation of
CountDownLatch, but it also
periodically checks the state of the provided SolrCloseable and terminates the wait if
it's closed by throwing an InterruptedException.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SolrCloseableLatch
-
-
Method Details
-
await
- Throws:
InterruptedException
-
await
- Throws:
InterruptedException
-
countDown
public void countDown() -
getCount
public long getCount()
-