azure-docs-sdk-java/legacy/docs-ref-autogen/com.microsoft.azure.service...

77 строки
8.2 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.servicebus.primitives.RetryExponential"
fullName: "com.microsoft.azure.servicebus.primitives.RetryExponential"
name: "RetryExponential"
nameWithType: "RetryExponential"
summary: "Retry<wbr>Policy implementation where the delay between retries will grow in an exponential manner."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy&text=RetryPolicy\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy.getDefault()?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy.getDefault&text=getDefault\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy.getNextRetryInterval(java.lang.String,java.lang.Exception,java.time.Duration)?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy.getNextRetryInterval&text=getNextRetryInterval\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy.getNoRetry()?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy.getNoRetry&text=getNoRetry\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy.getRetryCount(java.lang.String)?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy.getRetryCount&text=getRetryCount\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy.incrementRetryCount(java.lang.String)?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy.incrementRetryCount&text=incrementRetryCount\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy.isRetryableException(java.lang.Exception)?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy.isRetryableException&text=isRetryableException\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy.onGetNextRetryInterval(java.lang.String,java.lang.Exception,java.time.Duration,int)?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy.onGetNextRetryInterval&text=onGetNextRetryInterval\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy.resetRetryCount(java.lang.String)?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy.resetRetryCount&text=resetRetryCount\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy.toString()?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy.toString&text=toString\" data-throw-if-not-resolved=\"False\" />"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **RetryExponential**</br> extends <xref href=\"com.microsoft.azure.servicebus.primitives.RetryPolicy?alt=com.microsoft.azure.servicebus.primitives.RetryPolicy&text=RetryPolicy\" data-throw-if-not-resolved=\"False\" />"
constructors:
- uid: "com.microsoft.azure.servicebus.primitives.RetryExponential.RetryExponential(java.time.Duration,java.time.Duration,int,java.lang.String)"
fullName: "com.microsoft.azure.servicebus.primitives.RetryExponential.RetryExponential(Duration minimumBackoff, Duration maximumBackoff, int maximumRetryCount, String name)"
name: "RetryExponential(Duration minimumBackoff, Duration maximumBackoff, int maximumRetryCount, String name)"
nameWithType: "RetryExponential.RetryExponential(Duration minimumBackoff, Duration maximumBackoff, int maximumRetryCount, String name)"
parameters:
- name: "minimumBackoff"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
- name: "maximumBackoff"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
- name: "maximumRetryCount"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- name: "name"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public RetryExponential(Duration minimumBackoff, Duration maximumBackoff, int maximumRetryCount, String name)"
methods:
- uid: "com.microsoft.azure.servicebus.primitives.RetryExponential.onGetNextRetryInterval(java.lang.String,java.lang.Exception,java.time.Duration,int)"
fullName: "com.microsoft.azure.servicebus.primitives.RetryExponential.onGetNextRetryInterval(String clientId, Exception lastException, Duration remainingTime, int baseWaitTimeSecs)"
name: "onGetNextRetryInterval(String clientId, Exception lastException, Duration remainingTime, int baseWaitTimeSecs)"
nameWithType: "RetryExponential.onGetNextRetryInterval(String clientId, Exception lastException, Duration remainingTime, int baseWaitTimeSecs)"
summary: "Adjusts the interval after which next<wbr>Retry should be attempted, based on the last exception encountered, the remaining time before the operation times out and the minimum wait time before retry."
modifiers:
- "protected"
overridden: "com.microsoft.azure.servicebus.primitives.RetryPolicy.onGetNextRetryInterval(java.lang.String,java.lang.Exception,java.time.Duration,int)"
parameters:
- name: "clientId"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- name: "lastException"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html\">Exception</a>"
- name: "remainingTime"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
- name: "baseWaitTimeSecs"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
syntax: "protected Duration onGetNextRetryInterval(String clientId, Exception lastException, Duration remainingTime, int baseWaitTimeSecs)"
desc: "Adjusts the interval after which nextRetry should be attempted, based on the last exception encountered, the remaining time before the operation times out and the minimum wait time before retry. Clients can override this method to specify a wait time based on the exception encountered."
returns:
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
type: "class"
desc: "RetryPolicy implementation where the delay between retries will grow in an exponential manner. RetryPolicy can be set on the client operations using <xref uid=\"com.microsoft.azure.servicebus.primitives.ConnectionStringBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ConnectionStringBuilder\"></xref>. RetryIntervals will be computed using a retryFactor which is a function of deltaBackOff (MaximumBackoff - MinimumBackoff) and MaximumRetryCount"
metadata: {}
package: "com.microsoft.azure.servicebus.primitives"
artifact: com.microsoft.azure:azure-servicebus:3.6.7