RetryPolicyConfig api improved