for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory Http Adapter package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\HttpAdapter\Event\Retry;
use Ivory\HttpAdapter\Event\Retry\Strategy\RetryStrategyInterface;
use Ivory\HttpAdapter\Message\InternalRequestInterface;
/**
* @author GeLo <[email protected]>
interface RetryInterface
{
const RETRY_COUNT = 'retry_count';
* @return RetryStrategyInterface
public function getStrategy();
* @param RetryStrategyInterface $strategy
public function setStrategy(RetryStrategyInterface $strategy);
* @param InternalRequestInterface $internalRequest
* @param bool $wait
* @return InternalRequestInterface|bool
public function retry(InternalRequestInterface $internalRequest, $wait = true);
}