Package arez.spy
Interface TransactionInfo
public interface TransactionInfo
Spy interface into transaction data.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Return the name of the transaction.Return the parent transaction if any.Return the tracker associated with this transaction.boolean
Return true if the transaciton only allows reads, false if writes allowed.boolean
Return true if this transaction is tracking observables accessed within the transaction.
-
Method Details
-
getName
Return the name of the transaction. Transactions usually have the same name as the Action or Observer that triggered transaction.- Returns:
- the name of the transaction.
-
isReadOnly
boolean isReadOnly()Return true if the transaciton only allows reads, false if writes allowed.- Returns:
- true if the transaciton only allows reads, false if writes allowed.
-
getParent
Return the parent transaction if any. The parent transaction was the one that was active when this transaction began.- Returns:
- the parent transaction if any.
-
isTracking
boolean isTracking()Return true if this transaction is tracking observables accessed within the transaction.- Returns:
- true if this transaction is tracking observables accessed within the transaction.
-
getTracker
Return the tracker associated with this transaction. This method should not be invoked unlessisTracking()
returns true.- Returns:
- the Observer that is tracker for this transaction.
-