public class DBTransactionStorage implements TransactionStorage
Constructor and Description |
---|
DBTransactionStorage() |
Modifier and Type | Method and Description |
---|---|
boolean |
addTransaction(SignedTransaction transaction)
Add a new transaction to the store. If the store already has a transaction with the same id it will be
overwritten.
|
SignedTransaction |
getTransaction(SecureHash id)
Return the transaction with the given id, or null if no such transaction exists.
|
java.lang.Iterable<net.corda.core.transactions.SignedTransaction> |
getTransactions() |
rx.Observable<net.corda.core.transactions.SignedTransaction> |
getUpdates()
Get a synchronous Observable of updates. When observations are pushed to the Observer, the vault will already
incorporate the update.
|
rx.subjects.SerializedSubject<net.corda.core.transactions.SignedTransaction,net.corda.core.transactions.SignedTransaction> |
getUpdatesPublisher() |
kotlin.Pair<java.util.List,rx.Observable> |
track()
Returns all currently stored transactions and further fresh ones.
|
addTransaction
getTransaction, getUpdates, track
public boolean addTransaction(SignedTransaction transaction)
Add a new transaction to the store. If the store already has a transaction with the same id it will be overwritten.
transaction
- The transaction to be recorded.public SignedTransaction getTransaction(SecureHash id)
Return the transaction with the given id, or null if no such transaction exists.
public rx.subjects.SerializedSubject<net.corda.core.transactions.SignedTransaction,net.corda.core.transactions.SignedTransaction> getUpdatesPublisher()
public rx.Observable<net.corda.core.transactions.SignedTransaction> getUpdates()
Get a synchronous Observable of updates. When observations are pushed to the Observer, the vault will already incorporate the update.
public kotlin.Pair<java.util.List,rx.Observable> track()
Returns all currently stored transactions and further fresh ones.
public java.lang.Iterable<net.corda.core.transactions.SignedTransaction> getTransactions()