mirror of https://github.com/apache/lucene.git
add closeable to SearcherManager
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1213044 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9e193b62bc
commit
118005d308
|
@ -17,6 +17,7 @@ package org.apache.lucene.search;
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.Semaphore;
|
||||
|
||||
|
@ -65,7 +66,7 @@ import org.apache.lucene.store.Directory;
|
|||
* @lucene.experimental
|
||||
*/
|
||||
|
||||
public final class SearcherManager {
|
||||
public final class SearcherManager implements Closeable {
|
||||
|
||||
private volatile IndexSearcher currentSearcher;
|
||||
private final SearcherFactory searcherFactory;
|
||||
|
|
Loading…
Reference in New Issue