<?php

namespace FiloBlu\Esb\Api;

use FiloBlu\Esb\Api\Data\QueueItemInterface;

/**
 * Interface RetryStrategyInterface
 * @package FiloBlu\Esb\Api
 */
interface RetryStrategyInterface
{
    /**
     * Returns true if item is rescheduled false otherwise
     *
     * @param QueueItemInterface $queueItem
     * @return boolean
     */
    public function reschedule(QueueItemInterface $queueItem) : bool;
}