Class BaseDirectory

All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
ByteBuffersDirectory, FSDirectory

public abstract class BaseDirectory extends Directory
Base implementation for a concrete Directory that uses a LockFactory for locking.
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Field Details

    • isOpen

      protected volatile boolean isOpen
    • lockFactory

      protected final LockFactory lockFactory
      Holds the LockFactory instance (implements locking for this Directory instance).
  • Constructor Details

    • BaseDirectory

      protected BaseDirectory(LockFactory lockFactory)
      Sole constructor.
  • Method Details