A way to add to the default retry policy of a client
- Lenguaje dominante
- Java
- Estrellas
- 2.6k
- Forks
- 1k
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 51
Descripción
## Describe the Feature
Sometimes I logically want to add a retry condition to a certain client, without changing the rest of its default retry policy, especially if it already uses a custom one like DynamoDB.
## Is your Feature Request related to a problem?
I don't seem to have a way to get at [this `DynamoDbRetryPolicy` class](https://github.com/aws/aws-sdk-java-v2/blob/master/services/dynamodb/src/main/java/software/amazon/awssdk/services/dynamodb/DynamoDbRetryPolicy.java#L32-L33), for example, because it's marked as an internal API. Furthermore, I need to look at the SDK source code to even see which retry policy I should be aiming to modify or copy.
## Proposed Solution
Not sure, maybe provide some sort of builder method that gives me access to the default value I'd be overriding?
## Describe alternatives you've considered
Reflection to get at the internal class, but then it can break from commits [like this](https://github.com/aws/aws-sdk-java-v2/commit/8336dc22780e504f2136dbc273234fa72a915318).
## Additional Context
N/A
Guía de contribución
Línea de trabajo
Comienza leyendo la clase DynamoDbRetryPolicy enlazada en el issue y el código fuente del SDK correspondiente a la configuración predeterminada de la retry-policy del cliente. Compara cómo se exponen las policies personalizadas existentes y, después, define un enfoque que permita a un cliente añadir una condición de retry sin reflection ni cambios en otros defaults; se considera terminado cuando la API pública y su comportamiento estén claros.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, java
- Área
- api, backend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100