IndexTableSwitcherInterface.php 517 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventoryMultiDimensionalIndexerApi\Model;
  8. /**
  9. * Logic for switching active and replica index tables by IndexName object
  10. *
  11. * @api
  12. */
  13. interface IndexTableSwitcherInterface
  14. {
  15. /**
  16. * @param IndexName $indexName
  17. * @param string $connectionName
  18. * @return void
  19. */
  20. public function switch(IndexName $indexName, string $connectionName): void;
  21. }