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

com.taobao.csp.sentinel.slots.block.callbacks.CallbackManager Maven / Gradle / Ivy

There is a newer version: 1.8.3
Show newest version
package com.taobao.csp.sentinel.slots.block.callbacks;

/***
 * 回调管理类
 * 
 * @author youji.zj [email protected]
 * @since 2014-10-2
 *
 */
public class CallbackManager {

	/*** url clean ***/
	private static volatile UrlClean urlClean = new DefaultUrlClean();
	
	/*** url block ***/
	private static volatile UrlBlock urlBlock = new DefaultUrlBlock();
	
	/*** hsf provider block ***/
	private static volatile HsfProviderBlock hsfProviderBlock = new DefaultHsfProviderBlock();
	
	/*** resource hook ***/

	public static UrlClean getUrlClean() {
		return urlClean;
	}

	public static void setUrlClean(UrlClean urlClean) {
		CallbackManager.urlClean = urlClean;
	}

	public static UrlBlock getUrlBlock() {
		return urlBlock;
	}

	public static void setUrlBlock(UrlBlock urlBlock) {
		CallbackManager.urlBlock = urlBlock;
	}

	public static HsfProviderBlock getHsfProviderBlock() {
		return hsfProviderBlock;
	}

	public static void setHsfProviderBlock(HsfProviderBlock hsfProviderBlock) {
		CallbackManager.hsfProviderBlock = hsfProviderBlock;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy