public abstract class ThrowawayTransaction extends Transaction
Transaction
that can be thrown away if it is in execution when the database is closing.
This transaction type is for storing data that is not critical to be saved on plugin shutdown.
attempts, dbType, success
Constructor and Description |
---|
ThrowawayTransaction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
shouldBeExecuted()
Override this method for conditional execution.
|
dbIsNotUnderHeavyLoad, execute, execute, executeOther, executeSwallowingExceptions, executeTransaction, getDBState, getServerUUID, performOperations, query, toString, wasSuccessful
protected boolean shouldBeExecuted()
Transaction
Please note that the transaction has not been initialized and class variables are not available for queries. The condition should depend on other variables (Like the data that is to be stored) given to the transaction.
shouldBeExecuted
in class Transaction