Class RetryPolicy
java.lang.Object
com.azure.resourcemanager.eventgrid.models.RetryPolicy
Information about the retry policy for an event subscription.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the eventTimeToLiveInMinutes property: Time To Live (in minutes) for events.Get the maxDeliveryAttempts property: Maximum number of delivery retry attempts for events.void
validate()
Validates the instance.withEventTimeToLiveInMinutes
(Integer eventTimeToLiveInMinutes) Set the eventTimeToLiveInMinutes property: Time To Live (in minutes) for events.withMaxDeliveryAttempts
(Integer maxDeliveryAttempts) Set the maxDeliveryAttempts property: Maximum number of delivery retry attempts for events.
-
Constructor Details
-
RetryPolicy
public RetryPolicy()
-
-
Method Details
-
maxDeliveryAttempts
Get the maxDeliveryAttempts property: Maximum number of delivery retry attempts for events.- Returns:
- the maxDeliveryAttempts value.
-
withMaxDeliveryAttempts
Set the maxDeliveryAttempts property: Maximum number of delivery retry attempts for events.- Parameters:
maxDeliveryAttempts
- the maxDeliveryAttempts value to set.- Returns:
- the RetryPolicy object itself.
-
eventTimeToLiveInMinutes
Get the eventTimeToLiveInMinutes property: Time To Live (in minutes) for events.- Returns:
- the eventTimeToLiveInMinutes value.
-
withEventTimeToLiveInMinutes
Set the eventTimeToLiveInMinutes property: Time To Live (in minutes) for events.- Parameters:
eventTimeToLiveInMinutes
- the eventTimeToLiveInMinutes value to set.- Returns:
- the RetryPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-