public class SolrCloseableLatch extends Object
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 and Description |
---|
SolrCloseableLatch(int count,
SolrCloseable closeable) |
Modifier and Type | Method and Description |
---|---|
void |
await() |
boolean |
await(long timeout,
TimeUnit unit) |
void |
countDown() |
long |
getCount() |
public SolrCloseableLatch(int count, SolrCloseable closeable)
public void await() throws InterruptedException
InterruptedException
public boolean await(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
public void countDown()
public long getCount()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.