Class BufferedRecordPipe
java.lang.Object
com.kingsrook.qqq.backend.core.actions.reporting.RecordPipe
com.kingsrook.qqq.backend.core.actions.reporting.BufferedRecordPipe
- Direct Known Subclasses:
RecordPipeBufferedWrapper
Subclass of RecordPipe, which uses a buffer in the addRecord method, to avoid
sending single-records at a time through postRecordActions and to consumers.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor - uses default buffer sizeBufferedRecordPipe
(Integer bufferSize) Constructor - customize buffer size. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a record to the pipe.void
Methods inherited from class com.kingsrook.qqq.backend.core.actions.reporting.RecordPipe
addRecords, consumeAvailableRecords, countAvailableRecords, getCapacity, setPostRecordActions, terminate
-
Constructor Details
-
BufferedRecordPipe
public BufferedRecordPipe()Constructor - uses default buffer size -
BufferedRecordPipe
Constructor - customize buffer size.
-
-
Method Details
-
addRecord
Description copied from class:RecordPipe
Add a record to the pipe. Will block if the pipe is full. Will noop if pipe is terminated.- Overrides:
addRecord
in classRecordPipe
- Throws:
QException
-
finalFlush
- Throws:
QException
-