Class FileVersionCheckingFactory


  • public class FileVersionCheckingFactory
    extends Object
    Checks version in files if it's present on the disk, creates store with latest version otherwise.
    • Field Detail

      • LATEST_VERSION_OVERRIDE_PROPERTY

        public static final String LATEST_VERSION_OVERRIDE_PROPERTY
        Property to override latest version. Should be used only in tests.
        See Also:
        Constant Field Values
      • LATEST_VERSION

        public static final int LATEST_VERSION
        Latest page store version.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FileVersionCheckingFactory

        public FileVersionCheckingFactory​(FileIOFactory fileIOFactory,
                                          FileIOFactory fileIOFactoryStoreV1,
                                          IntSupplier pageSize)
        Parameters:
        fileIOFactory - File IO factory.
        fileIOFactoryStoreV1 - File IO factory for V1 page store and for version checking.
        pageSize - Page size supplier.