123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace Symfony\Component\HttpClient\Retry;
- use Symfony\Component\HttpClient\Response\AsyncContext;
- use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
- interface RetryStrategyInterface
- {
-
- public function shouldRetry(AsyncContext $context, ?string $responseContent, ?TransportExceptionInterface $exception): ?bool;
-
- public function getDelay(AsyncContext $context, ?string $responseContent, ?TransportExceptionInterface $exception): int;
- }
|