Class AbstractDatabase

java.lang.Object
com.djrapitops.plan.storage.database.AbstractDatabase
All Implemented Interfaces:
Database
Direct Known Subclasses:
SQLDB

public abstract class AbstractDatabase extends Object implements Database
Abstract class representing a Database.

All Operations methods should be only called from an asynchronous thread.

  • Field Details

  • Constructor Details

    • AbstractDatabase

      protected AbstractDatabase()
  • Method Details

    • getState

      public Database.State getState()
      Specified by:
      getState in interface Database
    • setState

      public void setState(Database.State state)
    • isUnderHeavyLoad

      public boolean isUnderHeavyLoad()
    • increaseHeavyLoadDelay

      public void increaseHeavyLoadDelay()
    • assumeNoMoreHeavyLoad

      public void assumeNoMoreHeavyLoad()
    • getHeavyLoadDelayMs

      public int getHeavyLoadDelayMs()