Interface TransactionBufferReader
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
InMemTransactionBufferReader
A reader to read entries of a given transaction from transaction buffer.
-
Method Details
-
readNext
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:
closein interfaceAutoCloseable
-