Package co.aikar.idb

Class BaseDatabase

    • Method Detail

      • close

        public void close​(long timeout,
                          java.util.concurrent.TimeUnit unit)
        Description copied from interface: Database
        Called in onDisable, destroys the Data source and nulls out references.
        Specified by:
        close in interface Database
      • dispatchAsync

        public <T> java.util.concurrent.CompletableFuture<T> dispatchAsync​(java.util.concurrent.Callable<T> task)
        Specified by:
        dispatchAsync in interface Database
      • getLogger

        public java.util.logging.Logger getLogger()
        Description copied from interface: Database
        Get the Logger
        Specified by:
        getLogger in interface Database
      • getConnection

        public java.sql.Connection getConnection()
                                          throws java.sql.SQLException
        Description copied from interface: Database
        Get a JDBC Connection
        Specified by:
        getConnection in interface Database
        Throws:
        java.sql.SQLException