public class RetryInfo extends Object
Constructor and Description |
---|
RetryInfo()
Initializes a new instance of the
RetryInfo class. |
RetryInfo(RetryContext retryContext)
Initializes a new instance of the
RetryInfo class. |
Modifier and Type | Method and Description |
---|---|
int |
getRetryInterval()
Gets the interval in milliseconds until the next retry.
|
StorageLocation |
getTargetLocation()
Gets the location that the next retry should target.
|
LocationMode |
getUpdatedLocationMode()
Gets the location mode for subsequent retries.
|
void |
setRetryInterval(int retryInterval)
Sets the interval in milliseconds until the next retry.
|
void |
setTargetLocation(StorageLocation targetLocation)
Sets the location that the next retry should target.
|
void |
setUpdatedLocationMode(LocationMode updatedLocationMode)
Sets the location mode for subsequent retries.
|
String |
toString()
Returns a string that represents the current
RetryInfo instance. |
public RetryInfo()
RetryInfo
class.public RetryInfo(RetryContext retryContext)
RetryInfo
class.retryContext
- The RetryContext
object that was passed in to the retry policy.public int getRetryInterval()
int
which represents the retry interval (in milliseconds).public final StorageLocation getTargetLocation()
StorageLocation
object which represents the location for the next retry.public LocationMode getUpdatedLocationMode()
LocationMode
object which represents the location mode for subsequent retries.public void setRetryInterval(int retryInterval)
retryInterval
- An int
which represents the retry interval to set.public void setTargetLocation(StorageLocation targetLocation)
targetLocation
- A StorageLocation
object which represents the location to set.public void setUpdatedLocationMode(LocationMode updatedLocationMode)
updatedLocationMode
- A LocationMode
object which represents the the location mode to set.Copyright © 2018. All Rights Reserved.