public final class RadixApplicationAPI.Transaction
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addToWorkingArea(Action action)
Add an action to the working area
|
UnsignedAtom |
buildAtom()
Creates an atom composed of all of the currently staged particles.
|
RadixApplicationAPI.Result |
commitAndPush()
Commit the transaction onto the ledger
|
RadixApplicationAPI.Result |
commitAndPush(RadixNode originNode)
Commit the transaction onto the ledger
|
java.util.Set<ShardedParticleStateId> |
getWorkingAreaRequirements()
Retrieves the shards and particle types required to execute the
actions in the current working area.
|
void |
stage(Action action)
Add an action to staging area in preparation for commitAndPush.
|
void |
stageWorkingArea()
Move all actions in the current working area to staging
|
public void addToWorkingArea(Action action)
action
- action to add to the working areapublic java.util.Set<ShardedParticleStateId> getWorkingAreaRequirements()
public void stageWorkingArea() throws StageActionException
StageActionException
public void stage(Action action) throws StageActionException
action
- action to add to staging area.StageActionException
public UnsignedAtom buildAtom()
public RadixApplicationAPI.Result commitAndPush()
public RadixApplicationAPI.Result commitAndPush(RadixNode originNode)
originNode
- the originNode to push to