public interface CustomDataStorage
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears data in custom data storage.
|
void |
dispose()
Disposes (destroys) this custom data storage.
|
void |
flush()
Flushes data to disk immediately, otherwise flush is performed automatically with some delay
|
java.lang.String |
getValue(java.lang.String key)
Returns value stored for the specified key
|
java.util.Map<java.lang.String,java.lang.String> |
getValues()
Retrieves values from the storage
|
void |
putValue(java.lang.String key,
java.lang.String value)
Puts specified value into the storage
|
void |
putValues(java.util.Map<java.lang.String,java.lang.String> data)
Puts values into the storage, note that existing data will be completely overwritten.
|
void |
refresh()
Refreshes data from the underlying storage
|
void putValues(@NotNull java.util.Map<java.lang.String,java.lang.String> data)
data
- custom data to put into the storage@Nullable java.util.Map<java.lang.String,java.lang.String> getValues()
@Nullable java.lang.String getValue(@NotNull java.lang.String key)
key
- keyvoid putValue(@NotNull java.lang.String key, @Nullable java.lang.String value)
key
- keyvalue
- valuevoid flush()
void clear()
putValues(Map)
called with empty map.void dispose()
void refresh()