Your IP : 216.73.216.208


Current Path : /home/maglabs/it/lib/internal/Magento/Framework/App/
Upload File :
Current File : /home/maglabs/it/lib/internal/Magento/Framework/App/BackpressureEnforcerInterface.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

declare(strict_types=1);

namespace Magento\Framework\App;

use Magento\Framework\App\Backpressure\BackpressureExceededException;
use Magento\Framework\App\Backpressure\ContextInterface;

/**
 * Enforces certain backpressure
 */
interface BackpressureEnforcerInterface
{
    /**
     * Enforce the backpressure by throwing the exception when limit exceeded
     *
     * @param ContextInterface $context
     * @throws BackpressureExceededException
     * @return void
     */
    public function enforce(ContextInterface $context): void;
}

?>