Interface TransactionBufferReader

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    InMemTransactionBufferReader

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

      • readNext

        java.util.concurrent.CompletableFuture<java.util.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 java.lang.AutoCloseable