Package io.permazen.cli
Class Session.TxInfo
java.lang.Object
io.permazen.cli.Session.TxInfo
- Enclosing class:
- Session
Information about the a transaction associated with a
Session.-
Method Summary
Modifier and TypeMethodDescriptionGet the associatedKVTransaction.getMode()Get theSessionModethat the transaction was opened with.Get the associatedPermazenTransaction, if any.Get the associatedTransaction, if any.
-
Method Details
-
getMode
Get theSessionModethat the transaction was opened with.- Returns:
- associated session mode
-
getKVTransaction
Get the associatedKVTransaction.- Returns:
KVTransactionassociated with this instance, never null
-
getTransaction
Get the associatedTransaction, if any.- Returns:
Transactionassociated with this instance, never null- Throws:
IllegalStateException- if theSessionwas inSessionMode.KEY_VALUEmode when the transaction was opened
-
getPermazenTransaction
Get the associatedPermazenTransaction, if any.- Returns:
PermazenTransactionassociated with this instance, never null- Throws:
IllegalStateException- if theSessionwas inSessionMode.KEY_VALUEorSessionMode.CORE_APImode when the transaction was opened
-