Server IP : 104.21.14.103 / Your IP : 3.147.127.153 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/home/giankuin/sieuthiweb.com.vn/wp-content/plugins/duplicator-pro/aws/Guzzle/Plugin/Backoff/ |
Upload File : |
<?php namespace DuplicatorPro\Guzzle\Plugin\Backoff; defined("ABSPATH") or die(""); use DuplicatorPro\Guzzle\Http\Message\RequestInterface; use DuplicatorPro\Guzzle\Http\Message\Response; use DuplicatorPro\Guzzle\Http\Exception\HttpException; /** * Strategy to determine if a request should be retried and how long to delay between retries */ interface BackoffStrategyInterface { /** * Get the amount of time to delay in seconds before retrying a request * * @param int $retries Number of retries of the request * @param RequestInterface $request Request that was sent * @param Response $response Response that was received. Note that there may not be a response * @param HttpException $e Exception that was encountered if any * * @return bool|int Returns false to not retry or the number of seconds to delay between retries */ public function getBackoffPeriod( $retries, RequestInterface $request, Response $response = null, HttpException $e = null ); }