@ThreadSafe
public class Transaction
extends java.lang.Object
Constructor and Description |
---|
Transaction(TamperEvidentAssetLedger ledger,
MutableDatabase<?,?,?,?,?> database) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
java.util.List<com.scalar.dl.ledger.proof.AssetProof> |
commit() |
Database<?,?,?,?,?> |
getDatabase() |
TamperEvidentAssetLedger |
getLedger() |
Ledger<?> |
getLedger(DeserializationType type) |
public Transaction(TamperEvidentAssetLedger ledger, MutableDatabase<?,?,?,?,?> database)
public TamperEvidentAssetLedger getLedger()
public Ledger<?> getLedger(DeserializationType type)
public Database<?,?,?,?,?> getDatabase()
public java.util.List<com.scalar.dl.ledger.proof.AssetProof> commit()
public void abort()