public final class RetryContext extends Object
Constructor and Description |
---|
RetryContext(int currentRetryCount,
RequestResult lastRequestResult,
StorageLocation nextLocation,
LocationMode locationMode)
Creates an instance of the
RequestResult class. |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentRetryCount()
Gets the number of retries for the given operation.
|
RequestResult |
getLastRequestResult()
Gets the last request's results.
|
LocationMode |
getLocationMode()
Gets the location mode for subsequent retries.
|
StorageLocation |
getNextLocation()
Gets the location that the next retry should target.
|
String |
toString()
Returns a string that represents the current
RetryContext instance. |
public RetryContext(int currentRetryCount, RequestResult lastRequestResult, StorageLocation nextLocation, LocationMode locationMode)
RequestResult
class.currentRetryCount
- An int
which represents the number of retries for the given operation.lastRequestResult
- A RequestResult
object which represents the last request's results.nextLocation
- A StorageLocation
object which represents the location mode for subsequent retries.locationMode
- A LocationMode
value which represents the location mode for subsequent retries.public int getCurrentRetryCount()
int
which represents the number of retries for the given operation.public RequestResult getLastRequestResult()
RequestResult
object which represents the last request's results.public LocationMode getLocationMode()
LocationMode
value which represents the location mode for subsequent retries.public StorageLocation getNextLocation()
StorageLocation
object which represents the location for subsequent retries.public String toString()
RetryContext
instance.toString
in class Object
String
which represents the current RetryContext
instance.Copyright © 2019. All rights reserved.