lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@osafoundation.org>
Subject Re: IndexReader.acquire()/release() ?
Date Sat, 19 Jul 2008 14:55:12 GMT

On Fri, 18 Jul 2008, Yonik Seeley wrote:

> Although I do wonder if incRef() and decRef() aren't more suitable
> names.  Just make those methods public, which the caveat that one
> should not call them on a closed reader.  They are expert level APIs
> after all.

That would work just as well. The acquire() and release() methods were 
intended to do exactly that (and check that the index is still open).

Andi..

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message