@ThreadSafe
public class Snapshot
extends java.lang.Object
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<com.scalar.dl.ledger.statemachine.InternalAsset> |
get(java.lang.String assetId) |
java.util.Map<java.lang.String,com.scalar.dl.ledger.statemachine.InternalAsset> |
getReadSet() |
java.util.Map<java.lang.String,com.scalar.dl.ledger.statemachine.InternalAsset> |
getWriteSet() |
boolean |
hasWriteSet() |
boolean |
isEmpty() |
void |
put(java.lang.String assetId,
com.scalar.dl.ledger.statemachine.InternalAsset record) |
void |
put(java.lang.String assetId,
java.lang.String data) |
public void put(java.lang.String assetId, com.scalar.dl.ledger.statemachine.InternalAsset record)
public void put(java.lang.String assetId, java.lang.String data)
public java.util.Optional<com.scalar.dl.ledger.statemachine.InternalAsset> get(java.lang.String assetId)
public java.util.Map<java.lang.String,com.scalar.dl.ledger.statemachine.InternalAsset> getReadSet()
public java.util.Map<java.lang.String,com.scalar.dl.ledger.statemachine.InternalAsset> getWriteSet()
public boolean isEmpty()
public boolean hasWriteSet()