Package org.infinispan.extendedstats
Class RemoteTransactionStatistics
java.lang.Object
org.infinispan.extendedstats.TransactionStatistics
org.infinispan.extendedstats.RemoteTransactionStatistics
Represents the statistic collected for a remote transaction
- Since:
- 6.0
- Author:
- Roberto Palmieri, Sebastiano Peluso, Diego Didona, Pedro Ruivo
-
Field Summary
Fields inherited from class org.infinispan.extendedstats.TransactionStatistics
initTime, log, timeService
-
Constructor Summary
-
Method Summary
Methods inherited from class org.infinispan.extendedstats.TransactionStatistics
addValue, copyValue, flushTo, getValue, incrementValue, isCommitted, isReadOnly, markAsUpdateTransaction, setOutcome, terminateTransaction
-
Constructor Details
-
RemoteTransactionStatistics
-
-
Method Details
-
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
-