Class MaxDocsBulkOperationBuffer
java.lang.Object
com.atlassian.confluence.plugins.opensearch.bulk.MaxDocsBulkOperationBuffer
- All Implemented Interfaces:
BulkOperationBuffer
Applies automatic flush to a delegate
BulkOperationBuffer
whenever the number of enqueued documents have reached the specified limit.- Since:
- 9.0
-
Constructor Details
-
MaxDocsBulkOperationBuffer
-
-
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
-
getLimit
public int getLimit()
-