Class SqlInstanceManager

java.lang.Object
dev.jacrispys.JavaBot.api.libs.utils.async.AsyncHandlerImpl
dev.jacrispys.JavaBot.utils.mysql.SqlInstanceManager
All Implemented Interfaces:
AsyncHandler

public class SqlInstanceManager extends AsyncHandlerImpl
Allows for async retrieval of a MySQL Connection instance
  • Constructor Details

    • SqlInstanceManager

      protected SqlInstanceManager()
  • Method Details

    • getInstance

      public static SqlInstanceManager getInstance()
    • getConnectionThread

      public Thread getConnectionThread()
    • getConnectionAsync

      public CompletableFuture<Connection> getConnectionAsync()
      Returns:
      a completed future with the connection object inside