Code example for MapMaker

Methods: makeMap

0
public class LogRoot { 
     
    public static final File DEFAULT_PATH = new File("/data/storage");
    public static final int DEFAULT_READING_PAGE_SIZE = 5 * 1024 * 1024;
     
    private ConcurrentMap<String, FileChannel> components = new MapMaker().makeMap();
    private File path;
 
    private int readingPageSize;
     
    public LogRoot() { 
        this(DEFAULT_PATH, DEFAULT_READING_PAGE_SIZE);
    } 
 
    public LogRoot(File rootPath, int readingPageSize) {
        this.path = rootPath;
        this.readingPageSize = readingPageSize;
    } 
     
    public File getPath() {