Class TransactionStatistics

java.lang.Object
org.tentackle.dbms.TransactionStatistics

public class TransactionStatistics extends Object
Transaction statistics collector.
Author:
harald
  • Constructor Details

    • TransactionStatistics

      public TransactionStatistics()
      Creates a new statistics object.
  • Method Details

    • countTransaction

      public void countTransaction(DbTransaction transaction, boolean rolledBack)
      Counts the invocation of a transaction.
      Parameters:
      transaction - the transaction
      rolledBack - true if transaction was rolled back, false if committed
    • logStatistics

      public void logStatistics(String title, org.tentackle.log.Logger.Level level, String tag, boolean clear)
      Logs the statistics.
      Parameters:
      title - the title, null if default
      level - the logging level
      tag - intro logging tag
      clear - true if clear statistics after dump