Class RetryUtil
java.lang.Object
com.google.cloud.spring.core.util.RetryUtil
Utility methods for retry settings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.api.gax.retrying.RetrySettingsupdateRetrySettings(com.google.api.gax.retrying.RetrySettings oldRetrySettings, Retry newRetry) Updates aRetrySettingsbased on configuration properties.
-
Method Details
-
updateRetrySettings
public static com.google.api.gax.retrying.RetrySettings updateRetrySettings(com.google.api.gax.retrying.RetrySettings oldRetrySettings, Retry newRetry) Updates aRetrySettingsbased on configuration properties.- Parameters:
oldRetrySettings- the existingRetrySettingsobject to updatenewRetry- theRetryobject containing configured property override values- Returns:
- the updated
RetrySettingsobject
-