ShouldRetry Interface
public interface ShouldRetry
Defines a callback delegate that will be invoked whenever a retry condition is encountered.
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
invoke(int retryCount, RuntimeException lastException, ReferenceObjectHelper<Duration> delay)
Defines a callback delegate that will be invoked whenever a retry condition is encountered. |
Method Details
invoke
public boolean invoke(int retryCount, RuntimeException lastException, ReferenceObjectHelper
Defines a callback delegate that will be invoked whenever a retry condition is encountered.
Parameters:
retryCount
- The current retry attempt count.
lastException
- The exception that caused the retry conditions to occur.
delay
- The delay that indicates how long the current thread will be suspended before the next iteration is invoked.
Returns:
if a retry is allowed; otherwise, .
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for Java