Module org.elasticsearch.server
Package org.elasticsearch.index
Interface IndexingPressureMonitor.IndexingPressureListener
- Enclosing interface:
IndexingPressureMonitor
public static interface IndexingPressureMonitor.IndexingPressureListener
Listener interface for receiving notifications about indexing pressure events.
Implementations can respond to tracking of primary operations and rejections
of large indexing operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonLargeIndexingOperationRejection(long largestOperationSizeInBytes) Called when a large indexing operation is rejected due to exceeding size limits.voidonPrimaryOperationTracked(long largestOperationSizeInBytes) Called when a primary indexing operation is tracked.
-
Method Details
-
onPrimaryOperationTracked
void onPrimaryOperationTracked(long largestOperationSizeInBytes) Called when a primary indexing operation is tracked. The implementation should be really lightweight as this is called in a hot path.- Parameters:
largestOperationSizeInBytes- the size in bytes of the largest operation tracked
-
onLargeIndexingOperationRejection
void onLargeIndexingOperationRejection(long largestOperationSizeInBytes) Called when a large indexing operation is rejected due to exceeding size limits. The implementation should be really lightweight as this is called in a hot path.- Parameters:
largestOperationSizeInBytes- the size in bytes of the rejected operation
-