33 строки
2.4 KiB
YAML
33 строки
2.4 KiB
YAML
### YamlMime:JavaType
|
|
uid: "com.microsoft.azure.sdk.iot.device.transport.RetryPolicy"
|
|
fullName: "com.microsoft.azure.sdk.iot.device.transport.RetryPolicy"
|
|
name: "RetryPolicy"
|
|
nameWithType: "RetryPolicy"
|
|
summary: "An interface for the retry policy."
|
|
syntax: "public interface **RetryPolicy**"
|
|
methods:
|
|
- uid: "com.microsoft.azure.sdk.iot.device.transport.RetryPolicy.getRetryDecision(int,com.microsoft.azure.sdk.iot.device.exceptions.TransportException)"
|
|
fullName: "com.microsoft.azure.sdk.iot.device.transport.RetryPolicy.getRetryDecision(int currentRetryCount, TransportException lastException)"
|
|
name: "getRetryDecision(int currentRetryCount, TransportException lastException)"
|
|
nameWithType: "RetryPolicy.getRetryDecision(int currentRetryCount, TransportException lastException)"
|
|
summary: "Determines whether the operation should be retried and the interval until the next retry."
|
|
modifiers:
|
|
- "abstract"
|
|
parameters:
|
|
- description: "the number of retries for the given operation"
|
|
name: "currentRetryCount"
|
|
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
|
|
- description: "the latest exception explaining why the retry is happening. This exception is guaranteed to\n be retryable. In the event of a terminal exception occurring, this API will not be called.\n Looking at this exception allows you to prevent retry on certain retryable exceptions, but\n does not allow you to retry exceptions that are terminal."
|
|
name: "lastException"
|
|
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.exceptions.TransportException?alt=com.microsoft.azure.sdk.iot.device.exceptions.TransportException&text=TransportException\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public abstract RetryDecision getRetryDecision(int currentRetryCount, TransportException lastException)"
|
|
desc: "Determines whether the operation should be retried and the interval until the next retry."
|
|
returns:
|
|
description: "the retry decision."
|
|
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.transport.RetryDecision?alt=com.microsoft.azure.sdk.iot.device.transport.RetryDecision&text=RetryDecision\" data-throw-if-not-resolved=\"False\" />"
|
|
type: "interface"
|
|
desc: "An interface for the retry policy."
|
|
metadata: {}
|
|
package: "com.microsoft.azure.sdk.iot.device.transport"
|
|
artifact: com.microsoft.azure.sdk.iot:iot-device-client:1.30.1
|