Class RamFileSystemConfigBuilder


  • public final class RamFileSystemConfigBuilder
    extends FileSystemConfigBuilder
    Config Builder for the RAM file system.
    • Constructor Detail

      • RamFileSystemConfigBuilder

        private RamFileSystemConfigBuilder()
        Constructor
    • Method Detail

      • getInstance

        public static RamFileSystemConfigBuilder getInstance()
        Gets the singleton builder.
        Returns:
        the singleton builder.
      • getMaxSize

        public int getMaxSize​(FileSystemOptions opts)
        Defaults to Integer.MAX_VALUE.
        Parameters:
        opts - The FileSystem options.
        Returns:
        The maximum size of the file. The next major version will change the return type to a long.
        See Also:
        setMaxSize(FileSystemOptions, int)
      • setMaxSize

        @Deprecated
        public void setMaxSize​(FileSystemOptions opts,
                               int sizeInBytes)
        Sets the maximum size of the file system.
        Parameters:
        opts - The FileSystem options.
        sizeInBytes - The maximum file size.
      • setMaxSize

        public void setMaxSize​(FileSystemOptions opts,
                               long sizeInBytes)
        Sets the maximum size of the file system.
        Parameters:
        opts - The FileSystem options.
        sizeInBytes - The maximum file size.