From 0adb2e498a15460ad9ad4301e892e25aba7b0511 Mon Sep 17 00:00:00 2001 From: Matthew Poulter Date: Mon, 9 Sep 2024 16:57:13 +0200 Subject: [PATCH] Retries --- src/VendConnector.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/VendConnector.php b/src/VendConnector.php index bd40247..e51123f 100644 --- a/src/VendConnector.php +++ b/src/VendConnector.php @@ -25,6 +25,14 @@ abstract class VendConnector extends Connector */ protected $defaultAuth = null; + public ?int $tries = 3; + + public ?int $retryInterval = 500; + + public ?bool $useExponentialBackoff = true; + + public ?bool $throwOnMaxTries = false; + public function __construct( ?string $clientId = null, ?string $clientSecret = null,