Package io.permazen.cli.cmd
Interface AbstractKVCommand.KVAction
- All Superinterfaces:
Session.Action
,Session.RetryableTransactionalAction
,Session.TransactionalAction
- Enclosing class:
- AbstractKVCommand
-
Method Summary
Modifier and TypeMethodDescriptiondefault SessionMode
getTransactionMode
(Session session) Get theSessionMode
corresponding to the transaction that should be opened.Methods inherited from interface io.permazen.cli.Session.Action
run
Methods inherited from interface io.permazen.cli.Session.TransactionalAction
getTransactionConfig
-
Method Details
-
getTransactionMode
Description copied from interface:Session.TransactionalAction
Get theSessionMode
corresponding to the transaction that should be opened.This must be at or below the mode of the given session.
The implementation in
Session.TransactionalAction
returnssession.
Session.getMode()
()
.- Specified by:
getTransactionMode
in interfaceSession.TransactionalAction
- Parameters:
session
- current session- Returns:
- transaction mode
-