ConfigurationInterface.php 587 B

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