Package de.mhus.lib.core.vault
Interface MutableVaultSource
-
- All Superinterfaces:
VaultSource
- All Known Implementing Classes:
FileVaultSource,FolderVaultSource,MapMutableVaultSource
public interface MutableVaultSource extends VaultSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEntry(VaultEntry entry)voiddoLoad()voiddoSave()booleanisMemoryBased()Return true if load and save is needed to persist changed data.voidremoveEntry(UUID id)-
Methods inherited from interface de.mhus.lib.core.vault.VaultSource
getEditable, getEntry, getEntryIds, getName
-
-
-
-
Method Detail
-
addEntry
void addEntry(VaultEntry entry) throws de.mhus.lib.errors.MException
- Throws:
de.mhus.lib.errors.MException
-
removeEntry
void removeEntry(UUID id) throws de.mhus.lib.errors.MException
- Throws:
de.mhus.lib.errors.MException
-
doLoad
void doLoad() throws IOException- Throws:
IOException
-
doSave
void doSave() throws IOException- Throws:
IOException
-
isMemoryBased
boolean isMemoryBased()
Return true if load and save is needed to persist changed data.- Returns:
- true if storage is in memory
-
-