Class RetryPolicy
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.RetryPolicy
-
public final class RetryPolicy extends Object
Execution policy for an activity.
-
-
Constructor Summary
Constructors Constructor Description RetryPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
count
public Object count()
Get the count property: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0.- Returns:
- the count value.
-
withCount
public RetryPolicy withCount(Object count)
Set the count property: Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0.- Parameters:
count
- the count value to set.- Returns:
- the RetryPolicy object itself.
-
intervalInSeconds
public Integer intervalInSeconds()
Get the intervalInSeconds property: Interval between retries in seconds. Default is 30.- Returns:
- the intervalInSeconds value.
-
withIntervalInSeconds
public RetryPolicy withIntervalInSeconds(Integer intervalInSeconds)
Set the intervalInSeconds property: Interval between retries in seconds. Default is 30.- Parameters:
intervalInSeconds
- the intervalInSeconds value to set.- Returns:
- the RetryPolicy object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-