Class FileReadLockKey

  • All Implemented Interfaces:
    AffinityTaggedKey, IndexScopedKey

    public final class FileReadLockKey
    extends Object
    implements IndexScopedKey
    Lucene's index segment files are chunked, for safe deletion of elements a read lock is implemented so that all chunks are deleted only after the usage counter is decremented to zero. FileReadLockKey is used as a key for the reference counters; a special purpose key was needed to make atomic operation possible.
    Sanne Grinovero