Package org.infinispan.stats
Class LocalTransactionStatistics
- java.lang.Object
-
- org.infinispan.stats.TransactionStatistics
-
- org.infinispan.stats.LocalTransactionStatistics
-
public class LocalTransactionStatistics extends TransactionStatistics
Represents the statistics collected for a local transaction- Since:
- 6.0
- Author:
- Roberto Palmieri, Sebastiano Peluso, Diego Didona, Pedro Ruivo
-
-
Field Summary
-
Fields inherited from class org.infinispan.stats.TransactionStatistics
initTime, log, timeService, trace
-
-
Constructor Summary
Constructors Constructor Description LocalTransactionStatistics(boolean optimisticLockingScheme, TimeService timeService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLocalTransaction()
void
onPrepareCommand()
Signals the reception of thePrepareCommand
.protected void
terminate()
Signals this transaction as completed and updates the statistics to the final values ready to be merged in the cache statistics.String
toString()
-
Methods inherited from class org.infinispan.stats.TransactionStatistics
addValue, copyValue, flushTo, getValue, incrementValue, isCommitted, isReadOnly, markAsUpdateTransaction, setOutcome, terminateTransaction
-
-
-
-
Constructor Detail
-
LocalTransactionStatistics
public LocalTransactionStatistics(boolean optimisticLockingScheme, TimeService timeService)
-
-
Method Detail
-
toString
public final String toString()
- Overrides:
toString
in classTransactionStatistics
-
onPrepareCommand
public final void onPrepareCommand()
Description copied from class:TransactionStatistics
Signals the reception of thePrepareCommand
.- Specified by:
onPrepareCommand
in classTransactionStatistics
-
isLocalTransaction
public final boolean isLocalTransaction()
- Specified by:
isLocalTransaction
in classTransactionStatistics
- Returns:
true
if this transaction statistics is for a local transaction.
-
terminate
protected final void terminate()
Description copied from class:TransactionStatistics
Signals this transaction as completed and updates the statistics to the final values ready to be merged in the cache statistics. This method is abstract in order to be override for the local and the remote transactions.- Specified by:
terminate
in classTransactionStatistics
-
-