Package org.infinispan.stats
Class RemoteTransactionStatistics
- java.lang.Object
-
- org.infinispan.stats.TransactionStatistics
-
- org.infinispan.stats.RemoteTransactionStatistics
-
public class RemoteTransactionStatistics extends TransactionStatistics
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.stats.TransactionStatistics
initTime, log, timeService, trace
-
-
Constructor Summary
Constructors Constructor Description RemoteTransactionStatistics(org.infinispan.commons.time.TimeService timeService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisLocalTransaction()voidonPrepareCommand()Signals the reception of thePrepareCommand.protected voidterminate()Signals this transaction as completed and updates the statistics to the final values ready to be merged in the cache statistics.StringtoString()-
Methods inherited from class org.infinispan.stats.TransactionStatistics
addValue, copyValue, flushTo, getValue, incrementValue, isCommitted, isReadOnly, markAsUpdateTransaction, setOutcome, terminateTransaction
-
-
-
-
Method Detail
-
toString
public final String toString()
- Overrides:
toStringin classTransactionStatistics
-
onPrepareCommand
public final void onPrepareCommand()
Description copied from class:TransactionStatisticsSignals the reception of thePrepareCommand.- Specified by:
onPrepareCommandin classTransactionStatistics
-
isLocalTransaction
public final boolean isLocalTransaction()
- Specified by:
isLocalTransactionin classTransactionStatistics- Returns:
trueif this transaction statistics is for a local transaction.
-
terminate
protected final void terminate()
Description copied from class:TransactionStatisticsSignals 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:
terminatein classTransactionStatistics
-
-