Model
StockProcessor
Magento\CatalogImportExport\Model\Import\Product\StockProcessor
What it does
This class manages stock-related indexing operations for imported products in Magento 2.
Developers use it during product import processes to trigger reindexing of specific products by their IDs, ensuring stock data remains synchronized across the system.
It only reindexes when indexers are in real-time mode (not scheduled), making imports more efficient.
Public Methods
- reindexList()