All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alicloud.openservices.tablestore.model.RetryStrategy Maven / Gradle / Ivy

Go to download

Aliyun Open Services SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

The newest version!
package com.alicloud.openservices.tablestore.model;

public interface RetryStrategy {

    /**
     * Returns a RetryStrategy object of the same type that has not been retried.
     *
     * @return A RetryStrategy object of the same type that has not been retried.
     */
    public RetryStrategy clone();
    
    /**
     * Returns the number of retries for the current operation
     *
     * @return the number of retries for the current operation
     */
    public int getRetries();

    /**
     * Get the delay time before the retries-th retry is initiated. The SDK will initiate the retries-th retry after this period of time.
     * If the return value is less than or equal to 0, it means no retry will be attempted.
     *
     * @param action  Operation name, such as "ListTable", "GetRow", "PutRow", etc.
     * @param ex      Error information from the last failed attempt, either a ClientException or a TableStoreException
     * @return The delay time before the retries-th retry is initiated (in milliseconds). A value less than or equal to 0 indicates that the operation is not retryable.
     */
    public long nextPause(String action, Exception ex);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy