Package io.permazen.kv.raft.cmd
Class AbstractTransactionRaftCommand.RaftTransactionAction
java.lang.Object
io.permazen.kv.raft.cmd.AbstractRaftCommand.RaftAction
io.permazen.kv.raft.cmd.AbstractTransactionRaftCommand.RaftTransactionAction
- All Implemented Interfaces:
Session.Action
,Session.RetryableTransactionalAction
,Session.TransactionalAction
,Session.TransactionalActionWithOptions
- Enclosing class:
- AbstractTransactionRaftCommand
protected abstract class AbstractTransactionRaftCommand.RaftTransactionAction
extends AbstractRaftCommand.RaftAction
implements Session.RetryableTransactionalAction, Session.TransactionalActionWithOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Consistency
Get the options, if any, to be used when creating a new transaction for this action to run in.final void
run
(Session session, RaftKVDatabase db) protected abstract void
run
(Session session, RaftKVTransaction tx) Methods inherited from class io.permazen.kv.raft.cmd.AbstractRaftCommand.RaftAction
run
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.permazen.cli.Session.Action
run
-
Constructor Details
-
RaftTransactionAction
protected RaftTransactionAction()
-
-
Method Details
-
run
- Specified by:
run
in classAbstractRaftCommand.RaftAction
- Throws:
Exception
-
getTransactionOptions
Description copied from interface:Session.TransactionalActionWithOptions
Get the options, if any, to be used when creating a new transaction for this action to run in.- Specified by:
getTransactionOptions
in interfaceSession.TransactionalActionWithOptions
- Returns:
KVDatabase
-specific transaction options, or null for none
-
getConsistency
-
run
- Throws:
Exception
-