com.r3corda.node.services.persistence / PerFileTransactionStorage

PerFileTransactionStorage

class PerFileTransactionStorage : TransactionStorage

File-based transaction storage, storing transactions per file.



Constructors

<init> PerFileTransactionStorage(storeDir: Path)

File-based transaction storage, storing transactions per file.

Properties

storeDir val storeDir: Path
transactions val transactions: Iterable<SignedTransaction>

Functions

addTransaction fun addTransaction(transaction: SignedTransaction): Unit

Add a new transaction to the store. If the store already has a transaction with the same id it will be overwritten.

getTransaction fun getTransaction(id: SecureHash): SignedTransaction?

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