Interface TransactionBufferReader

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
InMemTransactionBufferReader

@Beta public interface TransactionBufferReader extends AutoCloseable
A reader to read entries of a given transaction from transaction buffer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    readNext(int numEntries)
    Read next numEntries entries from transaction buffer for the given transaction.
  • Method Details

    • readNext

      CompletableFuture<List<TransactionEntry>> readNext(int numEntries)
      Read next numEntries entries from transaction buffer for the given transaction.

      numEntries is the max number of entries to return. The result returned can be less than numEntries.

      Parameters:
      numEntries - the number of entries to read from transaction buffer.
      Returns:
      a future represents the result of the read operations.
      Throws:
      TransactionBufferException.EndOfTransactionException - if reaching end of the transaction and no more entries to return.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable