- <init>
Create a new record accumulator
- append
Add a record to the accumulator, return the append result The append result will
contain the future
- deallocate
Deallocate the record batch
- drain
Drain all the data for the given nodes and collate them into a list of batches
that will fit within
- ready
Get a list of nodes whose partitions are ready to be sent, and the earliest time
at which any non-se
- reenqueue
Re-enqueue the given record batch in the accumulator to retry
- abortIncompleteBatches
This function is only called when sender is closed forcefully. It will fail all
the incomplete batch
- abortUndrainedBatches
Abort any batches which have not been drained
- awaitFlushCompletion
Mark all partitions as ready to send and block until the send is complete
- beginFlush
Initiate the flushing of data from the accumulator...this makes all requests
immediately ready
- expiredBatches
Get a list of batches which have been sitting in the accumulator too long and
need to be expired.
- flushInProgress
Are there any threads currently waiting on a flush? package private for test