Class AbstractItemStore

java.lang.Object
org.tasktide.itemstore.AbstractItemStore
All Implemented Interfaces:
ItemStore
Direct Known Subclasses:
RocksDbStore, SqliteStore

public abstract class AbstractItemStore extends Object implements ItemStore
Abstract ItemStore to implement getting ItemStore attributes, handling the locking/releasing of masterDB for updates, and caching/clearing the master prototype to another file.
  • Field Details

    • storeName

      protected final String storeName
    • dbDirectory

      protected final Path dbDirectory
    • masterDB

      protected final Path masterDB
    • protoDB

      protected final Path protoDB
    • lockStrategy

      protected final ItemStoreLockStrategy lockStrategy
  • Constructor Details

    • AbstractItemStore

      @Deprecated public AbstractItemStore(String storeName, String dbDirectory, String masterDB, String protoDB)
      Deprecated.
      Construct with all attributes. Throws IllegalArgument RunTime exception if not writable.
      Parameters:
      storeName -
      dbDirectory -
      masterDB -
      protoDB -
    • AbstractItemStore

      public AbstractItemStore(String storeName, String dbDirectory)
      Preferred constructor moving forward
      Parameters:
      storeName -
      dbDirectory -
  • Method Details