Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
20 | interface RetryInterface |
||
21 | { |
||
22 | const RETRY_COUNT = 'retry_count'; |
||
23 | |||
24 | /** |
||
25 | * @return RetryStrategyInterface |
||
26 | */ |
||
27 | public function getStrategy(); |
||
28 | |||
29 | /** |
||
30 | * @param RetryStrategyInterface $strategy |
||
31 | */ |
||
32 | public function setStrategy(RetryStrategyInterface $strategy); |
||
33 | |||
34 | /** |
||
35 | * @param InternalRequestInterface $internalRequest |
||
36 | * @param bool $wait |
||
37 | * |
||
38 | * @return InternalRequestInterface|bool |
||
39 | */ |
||
40 | public function retry(InternalRequestInterface $internalRequest, $wait = true); |
||
41 | } |
||
42 |