gerrit/plugins
Edwin Kempin aece3ffe75 Add fluent interface for retrying actions
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
2019-12-10 16:19:13 +01:00
..
codemirror-editor@9508693bd0 Update git submodules 2019-11-22 18:41:57 +00:00
commit-message-length-validator@556e427fd7 Update git submodules 2018-10-01 16:30:08 +00:00
delete-project@39dd25c822 Update git submodules 2019-12-04 07:40:00 +00:00
download-commands@eef164d087 Rename reviewdb package to entities and dissolve client package 2019-10-15 23:07:11 +02:00
gitiles@22b8e242b5 Update git submodules 2019-12-06 13:39:30 +00:00
hooks@6316be2828 Update git submodules 2019-12-02 10:23:39 +00:00
plugin-manager@828d666bbb Move acceptance.GerritConfig into its own package 2019-11-14 17:18:23 -08:00
replication@b3ed3c8f9a Merge branch 'stable-3.1' 2019-12-10 07:43:58 +00:00
reviewnotes@eac4cd97cb Add fluent interface for retrying actions 2019-12-10 16:19:13 +01:00
singleusergroup@d04c4c33ad Rename reviewdb package to entities and dissolve client package 2019-10-15 23:07:11 +02:00
webhooks@b620659883 Rename reviewdb package to entities and dissolve client package 2019-10-15 23:07:11 +02:00
BUILD Rename reviewdb package to entities and dissolve client package 2019-10-15 23:07:11 +02:00
external_plugin_deps.bzl Apply buildifier to .bzl files. 2018-07-10 20:38:52 +09:00