Class DefaultFileManager<K>

  • Type Parameters:
    K - The key type.
    All Implemented Interfaces:
    FileManager<K>

    public class DefaultFileManager<K>
    extends java.lang.Object
    implements FileManager<K>
    File manager for the DirectoryMessageStore and DirectoryMessageListStore store classes that keeps all files in a plain directory tree, and keeps a .tmp directory for temporary files.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultFileManager​(java.nio.file.Path directory, java.util.function.Function<K,​java.nio.file.Path> keyBuilder, java.util.function.Function<java.nio.file.Path,​K> keyParser)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.Path getFileFor​(K key)  
      java.util.Collection<K> initialKeySet()  
      java.nio.file.Path tmpFileFor​(K key)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultFileManager

        public DefaultFileManager​(@Nonnull
                                  java.nio.file.Path directory,
                                  @Nonnull
                                  java.util.function.Function<K,​java.nio.file.Path> keyBuilder,
                                  @Nonnull
                                  java.util.function.Function<java.nio.file.Path,​K> keyParser)