TransactionStorage
Keywords: net.corda.core.node.services.TransactionStorage interface
Date: 2023-09-18

net.corda.core.node.services

## Interface TransactionStorage

-     @DoNotImplement
      public TransactionStorage

  Thread-safe storage of transactions.

- - ### Constructor Detail

    - #### TransactionStorage

          public TransactionStorage()

  - ### Method Detail

    - #### getTransaction

          @Nullable
          SignedTransaction getTransaction(@NotNull
                                                     SecureHash id)

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

      See Also:
        `id`

    - #### getUpdates

          @NotNull
          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.

    - #### track

          @NotNull
          DataFeed<java.util.List,net.corda.core.transactions.SignedTransaction> track()

      Returns all currently stored transactions and further fresh ones.

    - #### trackTransaction

          @NotNull
          CordaFuture<net.corda.core.transactions.SignedTransaction> trackTransaction(@NotNull
                                                                                               SecureHash id)

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

      See Also:
        `id`