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:
Robert Muir 2011-12-11 19:23:45 +00:00
parent 9e193b62bc
commit 118005d308
1 changed files with 2 additions and 1 deletions

View File

@ -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;