Class StorageConfig
java.lang.Object
dev.prozilla.pine.core.state.config.StorageConfig
Manages configuration options related to storage.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BooleanConfigOptionDetermines whether the local storage can use a file to persist data across sessions.final BooleanConfigOptionDetermines whether the local storage will be loaded every time it is read from.final BooleanConfigOptionDetermines whether the local storage will be saved every time it is written to. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ENABLE_LOCAL_STORAGE
-
LOAD_ON_READ
-
SAVE_ON_WRITE
-
enableLocalStorage
Determines whether the local storage can use a file to persist data across sessions. Defaults tofalse. -
loadOnRead
Determines whether the local storage will be loaded every time it is read from. Defaults tofalse. -
saveOnWrite
Determines whether the local storage will be saved every time it is written to. Defaults tofalse.
-
-
Constructor Details
-
StorageConfig
public StorageConfig()
-