public final class RetryPolicy extends Object
| Constructor and Description |
|---|
RetryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
Object |
count()
Get the count property: Maximum ordinary retry attempts.
|
Integer |
intervalInSeconds()
Get the intervalInSeconds property: Interval between retries in seconds.
|
void |
validate()
Validates the instance.
|
RetryPolicy |
withCount(Object count)
Set the count property: Maximum ordinary retry attempts.
|
RetryPolicy |
withIntervalInSeconds(Integer intervalInSeconds)
Set the intervalInSeconds property: Interval between retries in seconds.
|
public Object count()
public RetryPolicy withCount(Object count)
count - the count value to set.public Integer intervalInSeconds()
public RetryPolicy withIntervalInSeconds(Integer intervalInSeconds)
intervalInSeconds - the intervalInSeconds value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.