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.| 构造器和说明 |
|---|
SolrCloseableLatch(int count,
SolrCloseable closeable) |
public SolrCloseableLatch(int count,
SolrCloseable closeable)
public void await()
throws InterruptedException
public boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
public void countDown()
public long getCount()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.