RetryDecision Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. transport. RetryDecision
- com.
public class RetryDecision
Represents the retry details
Constructor Summary
Constructor | Description |
---|---|
RetryDecision(boolean shouldRetry, long duration) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
Getter for the duration |
boolean |
shouldRetry()
Getter for the get |
Methods inherited from java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
Constructor Details
RetryDecision
public RetryDecision(boolean shouldRetry, long duration)
Constructor.
Parameters:
shouldRetry
- the max number of retries allowed in the policies.
duration
- the min interval between each retry in milliseconds.
Method Details
getDuration
public long getDuration()
Getter for the duration
Returns:
the Duration which represents the interval to wait until the next retry..
shouldRetry
public boolean shouldRetry()
Getter for the getRetryDecision
Returns:
true if the operation should be retried; otherwise false
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for Java