corda / net.corda.core.node.services / TransactionStorage

TransactionStorage

@DoNotImplement interface TransactionStorage

Thread-safe storage of transactions.

Properties

updates

abstract val updates: Observable<SignedTransaction>

Get a synchronous Observable of updates. When observations are pushed to the Observer, the vault will already incorporate the update.

Functions

getTransaction

abstract fun getTransaction(id: SecureHash): SignedTransaction?

Return the transaction with the given id, or null if no such transaction exists.

track

abstract fun track(): DataFeed<List<SignedTransaction>, SignedTransaction>

Returns all currently stored transactions and further fresh ones.

trackTransaction

abstract fun trackTransaction(id: SecureHash): CordaFuture<SignedTransaction>

Returns a future that completes with the transaction corresponding to id once it has been committed

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.