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

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

There is a newer version: 1.8.3
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy