Class MaxRamBulkOperationBuffer
java.lang.Object
com.atlassian.confluence.plugins.opensearch.bulk.MaxRamBulkOperationBuffer
- All Implemented Interfaces:
BulkOperationBuffer
Applies automatic flush to a delegate
BulkOperationBuffer
so that it does not exceed the specified RAM limit (MB).- Since:
- 9.0
-
Constructor Details
-
MaxRamBulkOperationBuffer
-
-
Method Details
-
add
Description copied from interface:BulkOperationBuffer
Add a bulk operation to the buffer. Adding an operation might trigger a flush depending on the implementation.- Specified by:
add
in interfaceBulkOperationBuffer
- Parameters:
op
- The operation to add to the buffer- Throws:
IOException
-
flush
Description copied from interface:BulkOperationBuffer
Send all pending bulk operations in the buffer to OpenSearch bulk API- Specified by:
flush
in interfaceBulkOperationBuffer
- Throws:
IOException
-
getDelegate
-
getLimitMB
public double getLimitMB()
-