| Current Path : /home/rtorresani/www/vendor/magento/framework-message-queue/ |
| Current File : //home/rtorresani/www/vendor/magento/framework-message-queue/CallbackInvokerInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Framework\MessageQueue;
/**
* Callback invoker interface. Invoke callbacks for consumer classes.
* @api
*/
interface CallbackInvokerInterface
{
/**
* Run short running process
*
* @param QueueInterface $queue
* @param int $maxNumberOfMessages
* @param \Closure $callback
* @param int|null $maxIdleTime
* @param int|null $sleep
* @return void
*/
public function invoke(
QueueInterface $queue,
$maxNumberOfMessages,
$callback,
$maxIdleTime = null,
$sleep = null
);
}