Class MySQLConnectionManager

java.lang.Object
dev.satyrn.papermc.api.storage.v2.MySQLConnectionManager
All Implemented Interfaces:
ConnectionManager

public class MySQLConnectionManager extends Object implements ConnectionManager
Handles connections to a MySQL-like data source.
Since:
1.9.0
Author:
Isabel Maskrey
  • Constructor Details

    • MySQLConnectionManager

      public MySQLConnectionManager(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull MySQLConfiguration configuration)
      Creates a new MySQL connection manager
      Parameters:
      plugin - The plugin instance.
      configuration - The connection configuration.
      Since:
      1.9.0
  • Method Details

    • connect

      @Nullable public @Nullable Connection connect()
      Opens a connection to the data source.
      Specified by:
      connect in interface ConnectionManager
      Returns:
      The connection to the data source.
      Since:
      1.9.0