public class RetryPolicies extends Object
RetryPolicy implementations.RetryPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
RetryPolicies.Builder
A builder of the default
RetryPolicy. |
| Modifier and Type | Method and Description |
|---|---|
static RetryPolicy |
justCall()
An implementation that invokes the requested method just once, without any execute.
|
static RetryPolicies.Builder |
repeat(int retries)
Creates a new instance of
RetryPolicies.Builder class with a number of retries as a parameter. |
public static RetryPolicies.Builder repeat(int retries)
RetryPolicies.Builder class with a number of retries as a parameter.
The default values are:
single-threaded scheduled executor
The default RetryPolicy is justCall().
retries - a number of retries, excluding the first callpublic static RetryPolicy justCall()
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.