| 1 | <?php |
| 2 | namespace Aws\Retry; |
| 3 | |
| 4 | /** |
| 5 | * Provides access to retry configuration |
| 6 | */ |
| 7 | interface ConfigurationInterface |
| 8 | { |
| 9 | /** |
| 10 | * Returns the retry mode. Available modes include 'legacy', 'standard', and |
| 11 | * 'adapative'. |
| 12 | * |
| 13 | * @return string |
| 14 | */ |
| 15 | public function getMode(); |
| 16 | |
| 17 | /** |
| 18 | * Returns the maximum number of attempts that will be used for a request |
| 19 | * |
| 20 | * @return string |
| 21 | */ |
| 22 | public function getMaxAttempts(); |
| 23 | |
| 24 | /** |
| 25 | * Returns the configuration as an associative array |
| 26 | * |
| 27 | * @return array |
| 28 | */ |
| 29 | public function toArray(); |
| 30 | } |