@Beta public interface TransactionBufferReader extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<List<TransactionEntry>> |
readNext(int numEntries)
Read next numEntries entries from transaction buffer for the given
transaction.
|
CompletableFuture<List<TransactionEntry>> readNext(int numEntries)
numEntries is the max number of entries to return. The result returned can be less than numEntries.
numEntries - the number of entries to read from transaction buffer.EndOfTransactionException - if reaching end of the transaction and no
more entries to return.void close()
close in interface AutoCloseableCopyright © 2017–2021 Apache Software Foundation. All rights reserved.