com.taobao.csp.sentinel.slots.block.callbacks.DefaultHsfProviderBlock Maven / Gradle / Ivy
package com.taobao.csp.sentinel.slots.block.callbacks;
import com.taobao.csp.sentinel.slots.block.BlockException;
import java.lang.reflect.Method;
/***
* 默认hsf provider限流抛异常
*
* @author youji.zj [email protected]
* @since 2014-10-2
*
*/
public class DefaultHsfProviderBlock implements HsfProviderBlock {
@Override
public Object blocked(Object proxy, Method method, Object[] args) throws Exception {
Exception e = BlockException.THROW_OUT_EXCEPTION;
throw e;
}
}