Package xyz.srnyx.annoyingapi.storage
Class StorageConfig.RemoteConnection
- java.lang.Object
-
- xyz.srnyx.annoyingapi.storage.StorageConfig.RemoteConnection
-
- Enclosing class:
- StorageConfig
public class StorageConfig.RemoteConnection extends java.lang.ObjectThe remote connection details/properties
-
-
Field Summary
Fields Modifier and Type Field Description @NotNull java.lang.StringdatabaseThe remote database name@NotNull java.lang.StringhostThe remote host@Nullable java.lang.StringpasswordThe remote passwordintportThe remote port@NotNull java.util.Map<java.lang.String,java.lang.String>propertiesAdditional custom properties for the remote connection@NotNull java.lang.StringtablePrefixThe table prefix for the remote database
Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscore@Nullable java.lang.StringusernameThe remote username
-
Constructor Summary
Constructors Constructor Description RemoteConnection(@NotNull org.bukkit.configuration.ConfigurationSection section)Construct a newStorageConfig.RemoteConnectioninstance to parse theremote-connectionsection
-
-
-
Field Detail
-
host
@NotNull public final @NotNull java.lang.String host
The remote host
-
port
public final int port
The remote port
-
database
@NotNull public final @NotNull java.lang.String database
The remote database name
-
username
@Nullable public final @Nullable java.lang.String username
The remote username
-
password
@Nullable public final @Nullable java.lang.String password
The remote password
-
tablePrefix
@NotNull public final @NotNull java.lang.String tablePrefix
The table prefix for the remote database
Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscore
-
properties
@NotNull public final @NotNull java.util.Map<java.lang.String,java.lang.String> properties
Additional custom properties for the remote connection
-
-
Constructor Detail
-
RemoteConnection
public RemoteConnection(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)Construct a newStorageConfig.RemoteConnectioninstance to parse theremote-connectionsection- Parameters:
section- theremote-connectionsection
-
-