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

com.alibaba.easyretry.common.access.RetryStrategyAccess Maven / Gradle / Ivy

package com.alibaba.easyretry.common.access;

import com.alibaba.easyretry.common.strategy.StopStrategy;
import com.alibaba.easyretry.common.strategy.WaitStrategy;

/**
 * 重试策略获取 如果方法上有指定则用指定Strategy 否则使用Global
 *
 * @author Created by wuhao on 2020/11/6.
 */
public interface RetryStrategyAccess {

	/**
	 * 获取全局重试任务停止策略
	 */
	StopStrategy getCurrentGlobalStopStrategy();

	/**
	 * 获取全局等待策略
	 */
	WaitStrategy getCurrentGlobalWaitStrategy();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy