Updated Storage API
This commit is contained in:
parent
0ab24d825f
commit
3c8ea1f4d9
@ -30,7 +30,7 @@ import dorkbox.util.database.DB_Server;
|
|||||||
import dorkbox.util.database.DatabaseStorage;
|
import dorkbox.util.database.DatabaseStorage;
|
||||||
import dorkbox.util.exceptions.SecurityException;
|
import dorkbox.util.exceptions.SecurityException;
|
||||||
import dorkbox.util.storage.Storage;
|
import dorkbox.util.storage.Storage;
|
||||||
import dorkbox.util.storage.StorageType;
|
import dorkbox.util.storage.StorageSystem;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The property store is the DEFAULT type of store for the network stack.
|
* The property store is the DEFAULT type of store for the network stack.
|
||||||
@ -62,7 +62,7 @@ class PropertyStore extends SettingsStore {
|
|||||||
serializationManager.register(DB_Server.class);
|
serializationManager.register(DB_Server.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.storage = StorageType.Memory()
|
this.storage = StorageSystem.Memory()
|
||||||
.make();
|
.make();
|
||||||
|
|
||||||
servers = this.storage.getAndPut(DatabaseStorage.SERVERS, new HashMap<ByteArrayWrapper, DB_Server>(16));
|
servers = this.storage.getAndPut(DatabaseStorage.SERVERS, new HashMap<ByteArrayWrapper, DB_Server>(16));
|
||||||
@ -210,6 +210,6 @@ class PropertyStore extends SettingsStore {
|
|||||||
@Override
|
@Override
|
||||||
public
|
public
|
||||||
void close() {
|
void close() {
|
||||||
StorageType.close(storage);
|
StorageSystem.close(storage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user