<?php

declare(strict_types=1);

namespace KupShop\SynchronizationBundle\Rabbit\RetryStrategy;

interface RetryStrategyInterface
{
    public function isRetryable(\AMQPEnvelope $envelope): bool;

    /**
     * Returns time to delay/wait in milliseconds.
     */
    public function getWaitingTime(\AMQPEnvelope $envelope): int;
}
