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
Constructor Details
RetryDecision
public RetryDecision(boolean shouldRetry, long duration)
Constructor.
Parameters:
Method Details
getDuration
public long getDuration()
Getter for the duration
Returns:
shouldRetry
public boolean shouldRetry()
Getter for the getRetryDecision
Returns: