Class DBAccessLock
- java.lang.Object
-
- com.djrapitops.plan.storage.database.DBAccessLock
-
public class DBAccessLock extends java.lang.Object
Database Lock that prevents queries and transactions from taking place before database schema is ready.- OperationCriticalTransactions pass through the Access lock without blocking to allow the initial transactions. - Queries inside Transactions skip access log to allow OperationCriticalTransactions perform queries.
-
-
Constructor Summary
Constructors Constructor Description DBAccessLock(Database database)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAccess()
void
checkAccess(Transaction transaction)
void
operabilityChanged()
-
-
-
Constructor Detail
-
DBAccessLock
public DBAccessLock(Database database)
-
-
Method Detail
-
checkAccess
public void checkAccess()
-
checkAccess
public void checkAccess(Transaction transaction)
-
operabilityChanged
public void operabilityChanged()
-
-