aece3ffe75
RetryHelper accumulated a lot of functionality and using it was not straight-forward for callers. Clean-up the class and add fluent interface for calling actions with retry: Object result = retryHelper.changeUpdate( "myActionName", batchUpdateFactory -> { try (BatchUpdate bu = newBatchUpdate(batchUpdateFactory)) { ... } return result; }) .retryOn(LockFailureException.class::isInstance) ... .call(); With the fluent interface providing an action name is now mandatory which makes the retry metrics more useful. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Iecdfa5b153ab17f31c8ec1d2dca82b428fcf5800 |
||
---|---|---|
.. | ||
codemirror-editor@9508693bd0 | ||
commit-message-length-validator@556e427fd7 | ||
delete-project@39dd25c822 | ||
download-commands@eef164d087 | ||
gitiles@22b8e242b5 | ||
hooks@6316be2828 | ||
plugin-manager@828d666bbb | ||
replication@b3ed3c8f9a | ||
reviewnotes@eac4cd97cb | ||
singleusergroup@d04c4c33ad | ||
webhooks@b620659883 | ||
BUILD | ||
external_plugin_deps.bzl |