Class AbstractDatabase
- java.lang.Object
-
- com.djrapitops.plan.storage.database.AbstractDatabase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.djrapitops.plan.storage.database.Database
Database.State
-
-
Field Summary
Fields Modifier and Type Field Description protected DBAccessLock
accessLock
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDatabase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assumeNoMoreHeavyLoad()
int
getHeavyLoadDelayMs()
Database.State
getState()
void
increaseHeavyLoadDelay()
boolean
isUnderHeavyLoad()
void
setState(Database.State state)
-
-
-
Field Detail
-
accessLock
protected final DBAccessLock accessLock
-
-
Method Detail
-
getState
public Database.State getState()
-
setState
public void setState(Database.State state)
-
isUnderHeavyLoad
public boolean isUnderHeavyLoad()
-
increaseHeavyLoadDelay
public void increaseHeavyLoadDelay()
-
assumeNoMoreHeavyLoad
public void assumeNoMoreHeavyLoad()
-
getHeavyLoadDelayMs
public int getHeavyLoadDelayMs()
-
-