public interface RegionDriver
RegionDatabases for several worlds. An instance
can return instances of a database for any given world.RegionDatabase| Modifier and Type | Method and Description |
|---|---|
RegionDatabase |
get(java.lang.String name)
Get a region database for a world.
|
java.util.List<RegionDatabase> |
getAll()
Fetch all the region databases that have been stored using this driver.
|
RegionDatabase get(java.lang.String name)
The given name should be a unique name for the world. Due to legacy reasons, there are no stipulations on the case sensitivity of the name. Historically, however, if the driver is a file-based driver, case-sensitivity will vary on whether the underlying filesystem is case-sensitive.
This method should return quickly.
name - the name of the world, which may be case sensitivejava.util.List<RegionDatabase> getAll() throws StorageException
As this may require a query to be performed, this method may block for a prolonged period of time.
StorageException - thrown if the fetch operation fails