Package ai.pipestream.common.service
Class ProcessingBufferManager
java.lang.Object
ai.pipestream.common.service.ProcessingBufferManager
CDI bean that provides convenient access to processing buffers managed by the interceptor.
This follows the Quarkus pattern of using static methods on interceptors for data access.
This manager acts as a CDI-injectable facade over the static methods, making it easier
to use in tests and other CDI beans while following established Quarkus patterns.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears all buffers.Gets all active buffer keys.ProcessingBuffer<ai.pipestream.data.v1.PipeDoc> Gets the buffer for a specific method key.ProcessingBuffer<ai.pipestream.data.v1.PipeDoc> Gets the buffer for a specific method.Gets buffer statistics for monitoring.intGets the total number of captured documents across all buffers.voidSaves all buffers to disk.booleansaveBuffer(String methodKey) Saves a specific buffer to disk.
-
Constructor Details
-
ProcessingBufferManager
public ProcessingBufferManager()
-
-
Method Details
-
getBuffer
Gets the buffer for a specific method key. -
getBuffer
public ProcessingBuffer<ai.pipestream.data.v1.PipeDoc> getBuffer(String className, String methodName) Gets the buffer for a specific method. -
getActiveBufferKeys
Gets all active buffer keys. -
getTotalCapturedDocuments
public int getTotalCapturedDocuments()Gets the total number of captured documents across all buffers. -
getBufferStatistics
Gets buffer statistics for monitoring. -
saveAllBuffers
public void saveAllBuffers()Saves all buffers to disk. -
saveBuffer
Saves a specific buffer to disk. -
clearAllBuffers
public void clearAllBuffers()Clears all buffers.
-