This binary provider is not independent and will always be used as part of a more complex template chain of providers.
Retry Binary Provider Configuration
In case of a failure in a read or write operation, this binary provider notifies its underlying provider in the hierarchy to retry the operation.
Default: 5000 ms
The time interval to wait before retries.
The maximum number of attempts to read or write before responding with failure.
The following example shows a configuration that uses S3 for persistent storage but uses a retry provider to keep retrying (up to a maximum of 10 times) in case the upload fails.
<!-- The S3 binary provider configuration --> <config version="v1"> <chain template="s3-storage-v3"/> <provider id="s3-storage-v3" type="s3-storage-v3"> <endpoint>s3.amazonaws.com</endpoint> <bucketName>bucketName</bucketName> <path>pathPrefix</path> <region>s3Region</region> <identity>yourIdentity</identity> <credential>yourCredentials</credential> </provider> <!-- The retry provider configuration --> <provider id="retry" type="retry"> <maxTrys>10</maxTrys> </provider> </config>