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)
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 Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/