REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.42 KB
Close
/home/godevadmin/www/admin/vendor/aws/Aws/Retry/Configuration.php
Text
Base64
<?php namespace Aws\Retry; use Aws\Retry\Exception\ConfigurationException; class Configuration implements ConfigurationInterface { private $mode; private $maxAttempts; private $validModes = [ 'legacy', 'standard', 'adaptive' ]; public function __construct($mode = 'legacy', $maxAttempts = 3) { $mode = strtolower($mode); if (!in_array($mode, $this->validModes)) { throw new ConfigurationException("'{$mode}' is not a valid mode." . " The mode has to be 'legacy', 'standard', or 'adaptive'."); } if (!is_numeric($maxAttempts) || intval($maxAttempts) != $maxAttempts || $maxAttempts < 1 ) { throw new ConfigurationException("The 'maxAttempts' parameter has" . " to be an integer >= 1."); } $this->mode = $mode; $this->maxAttempts = intval($maxAttempts); } /** * {@inheritdoc} */ public function getMode() { return $this->mode; } /** * {@inheritdoc} */ public function getMaxAttempts() { return $this->maxAttempts; } /** * {@inheritdoc} */ public function toArray() { return [ 'mode' => $this->getMode(), 'max_attempts' => $this->getMaxAttempts(), ]; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Exception
DIR
-
drwxrwxr-x
2024-06-18 20:10:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Configuration.php
1.42 KB
lrwxrwxr-x
2024-06-18 20:10:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ConfigurationInterface.php
617 B
lrwxrwxr-x
2024-06-18 20:10:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ConfigurationProvider.php
7.95 KB
lrwxrwxr-x
2024-06-18 20:10:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
QuotaManager.php
2.59 KB
lrwxrwxr-x
2024-06-18 20:10:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RateLimiter.php
5.20 KB
lrwxrwxr-x
2024-06-18 20:10:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RetryHelperTrait.php
1.57 KB
lrwxrwxr-x
2024-06-18 20:10:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).