Class FileSystemSaveableConfigContainer<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      FileSystemSaveableConfigContainer​(java.lang.Class<T> clazz, java.lang.String configName, java.util.Collection<java.util.function.Consumer<T>> onConfigChangeCallbacks, java.io.File configFile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getConfig()  
      java.util.concurrent.locks.Lock getReadLock()  
      java.util.concurrent.locks.Lock getWriteLock()  
      void reload()
      Instruct the container to reload the in-memory configuration from the backing configuration.
      void saveConfig()
      Overwrite the backing configuration with the in-memory copy of the configuration.
      • Methods inherited from class java.lang.Object

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

      • FileSystemSaveableConfigContainer

        public FileSystemSaveableConfigContainer​(java.lang.Class<T> clazz,
                                                 java.lang.String configName,
                                                 java.util.Collection<java.util.function.Consumer<T>> onConfigChangeCallbacks,
                                                 java.io.File configFile)