Module methanol

Interface StorageExtension

    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static StorageExtension inMemory​(long maxSize)
      Returns a StorageExtension for saving data in memory, not exceeding the given size.
      static StorageExtension onDisk​(java.nio.file.Path directory, long maxSize)
      Returns a StorageExtension for saving data on disk under the given directory, not exceeding the given size.
    • Method Detail

      • inMemory

        static StorageExtension inMemory​(long maxSize)
        Returns a StorageExtension for saving data in memory, not exceeding the given size.
      • onDisk

        static StorageExtension onDisk​(java.nio.file.Path directory,
                                       long maxSize)
        Returns a StorageExtension for saving data on disk under the given directory, not exceeding the given size.
        Throws:
        java.lang.IllegalArgumentException - if maxSize is not positive