RetryContext Class
- java.
lang. Object - com.
microsoft. azure. storage. RetryContext
- com.
public class RetryContext
Represents the context for a retry of a request made against the storage services.
Constructor Summary
Constructor | Description |
---|---|
RetryContext(int currentRetryCount, RequestResult lastRequestResult, StorageLocation nextLocation, LocationMode locationMode) |
Creates an instance of the class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
getCurrentRetryCount()
Gets the number of retries for the given operation. |
Request |
getLastRequestResult()
Gets the last request's results. |
Location |
getLocationMode()
Gets the location mode for subsequent retries. |
Storage |
getNextLocation()
Gets the location that the next retry should target. |
String |
toString()
Returns a string that represents the current RetryContext instance. |
Constructor Details
RetryContext
public RetryContext(int currentRetryCount, RequestResult lastRequestResult, StorageLocation nextLocation, LocationMode locationMode)
Creates an instance of the class.
Parameters:
int
which represents the number of retries for the given operation.
Method Details
getCurrentRetryCount
public int getCurrentRetryCount()
Gets the number of retries for the given operation.
Returns:
int
which represents the number of retries for the given operation.getLastRequestResult
public RequestResult getLastRequestResult()
Gets the last request's results.
Returns:
getLocationMode
public LocationMode getLocationMode()
Gets the location mode for subsequent retries.
Returns:
getNextLocation
public StorageLocation getNextLocation()
Gets the location that the next retry should target.
Returns:
toString
public String toString()
Returns a string that represents the current RetryContext instance.
Returns:
String
which represents the current RetryContext instance.Applies to
Azure SDK for Java