diff --git a/server/src/main/java/org/opensearch/tasks/SearchTaskResourceOperationsListener.java b/server/src/main/java/org/opensearch/tasks/SearchTaskResourceOperationsListener.java index 56686388f7aa1..e7f752c7af183 100644 --- a/server/src/main/java/org/opensearch/tasks/SearchTaskResourceOperationsListener.java +++ b/server/src/main/java/org/opensearch/tasks/SearchTaskResourceOperationsListener.java @@ -13,9 +13,11 @@ import org.opensearch.action.search.SearchRequestOperationsListener; /** - * SearchTaskResourceOperationsListener subscriber for operations on search tasks resource usages + * SearchTaskResourceOperationsListener subscriber for operations on search tasks resource usages. + * Listener ensures to refreshResourceStats on request end capturing the search task resource usage + * upon request completion. * - * @opensearch.internal + * @PublicApi */ public final class SearchTaskResourceOperationsListener extends SearchRequestOperationsListener { private final TaskResourceTrackingService taskResourceTrackingService;