File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,38 @@ public function setRetryDelay($retryDelay)
84
84
return $ this ;
85
85
}
86
86
87
+ /**
88
+ * Returns the exceptions to catch and retry on.
89
+ *
90
+ * If empty, every exception will trigger the retry logic.
91
+ *
92
+ * @return string[] Array of exception classes/interfaces
93
+ */
94
+ public function getRetryableExceptions ()
95
+ {
96
+ return $ this ->exceptions ;
97
+ }
98
+
99
+ /**
100
+ * Returns the maximum number of retries.
101
+ *
102
+ * @return int Maximum number of retries
103
+ */
104
+ public function getMaxRetries ()
105
+ {
106
+ return $ this ->maxRetries ;
107
+ }
108
+
109
+ /**
110
+ * Returns the delay between retries in milliseconds.
111
+ *
112
+ * @return int Delay in milliseconds
113
+ */
114
+ public function getRetryDelay ()
115
+ {
116
+ return $ this ->retryDelay ;
117
+ }
118
+
87
119
/**
88
120
* Returns a callable that decorates the given operation to add the retry logic.
89
121
*
You can’t perform that action at this time.
0 commit comments