A RetryPolicy provides a scheme for managing controlled retries of some
operation. For example, colossus.service.ServiceClient uses a RetryPolicy to determine
how it should try to reconnect if it's first attempt to connect fails.
RetryPolicy acts as a factory for RetryIncident, which is a per-incident
manager of retries. So every time a user encounters a situation where an
operation needs to be retried, it should use the RetryPolicy create a new
incident, and use the incident until either the operation succeeds or the
incident indicates to stop retrying.
A RetryPolicy provides a scheme for managing controlled retries of some operation. For example, colossus.service.ServiceClient uses a
RetryPolicy
to determine how it should try to reconnect if it's first attempt to connect fails.RetryPolicy acts as a factory for RetryIncident, which is a per-incident manager of retries. So every time a user encounters a situation where an operation needs to be retried, it should use the
RetryPolicy
create a new incident, and use the incident until either the operation succeeds or the incident indicates to stop retrying.