lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From petite_abeille <petite_abei...@mac.com>
Subject Re: java.nio.channels.FileLock
Date Wed, 29 Oct 2003 18:12:48 GMT

On Oct 29, 2003, at 19:08, Ronald Muller wrote:

> What is the advantage of using a FileLock object instead of the way 
> Lucene
> does it? (I do not see it)

Less code. Less worries.

> Also note an mportant limitation:
> "File locks are held on behalf of the entire Java virtual machine. 
> They are
> not suitable for controlling access to a file by multiple threads 
> within the
> same virtual machine."

Perhaps. Have you used it? Any practical experience with it? For or 
against?

Cheers,

PA.


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


Mime
View raw message