Package xyz.srnyx.annoyingapi.storage
Class StorageConfig.RemoteConnection
java.lang.Object
xyz.srnyx.annoyingapi.storage.StorageConfig.RemoteConnection
- Enclosing class:
StorageConfig
The remote connection details/properties
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @NotNull StringThe remote database namefinal @NotNull StringThe remote hostfinal @Nullable StringThe remote passwordfinal intThe remote portAdditional custom properties for the remote connectionfinal @NotNull StringThe table prefix for the remote database
Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscorefinal @Nullable StringThe remote username -
Constructor Summary
ConstructorsConstructorDescriptionRemoteConnection(@NotNull org.bukkit.configuration.ConfigurationSection section) Construct a newStorageConfig.RemoteConnectioninstance to parse theremote-connectionsection -
Method Summary
-
Field Details
-
host
The remote host -
port
public final int portThe remote port -
database
The remote database name -
username
The remote username -
password
The remote password -
tablePrefix
The table prefix for the remote database
Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscore -
properties
Additional custom properties for the remote connection
-
-
Constructor Details
-
RemoteConnection
public RemoteConnection(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section) Construct a newStorageConfig.RemoteConnectioninstance to parse theremote-connectionsection- Parameters:
section- theremote-connectionsection
-