com.taobao.csp.sentinel.slots.block.callbacks.CallbackManager Maven / Gradle / Ivy
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;
}
}