guava-retrying icon indicating copy to clipboard operation
guava-retrying copied to clipboard

Support creating Retryer instance using a spec string

Open vivekkothari opened this issue 8 years ago • 1 comments

Hi,

This library is awesome. One small thing will improve is even further. The way guava cache can be created using a spec string, it would be awesome if I can create a retryer using a spec. Advantages: In prod deployments, I just need to configure 1 config property which can tweak the retryer to any extent. Currently I would need to have different configs properties for different strategies. If we can come up with some sort of DSL, it would be possible. Please suggest a format I will try to raise a PR.

vivekkothari avatar Jul 20 '16 15:07 vivekkothari

some thing like https://google.github.io/guava/releases/17.0/api/docs/com/google/common/cache/CacheBuilderSpec.html

vivekkothari avatar Jul 21 '16 10:07 vivekkothari