接口 CommandHandlerInterceptor<R>
public interface CommandHandlerInterceptor<R>
Intercepts specified command, and can be extended using SPI.
- 从以下版本开始:
- 1.8.4
- 作者:
- icodening
- 另请参阅:
-
SpiLoaderSpi
-
方法概要
修饰符和类型方法说明intercept(CommandRequest request, CommandRequestExecution<R> execution) intercept the given command request, and return a command responsebooleanshouldIntercept(String commandName) whether to intercept the specified command
-
方法详细资料
-
shouldIntercept
whether to intercept the specified command- 参数:
commandName- command name, eg. getRules- 返回:
- "true" means intercept, "false" means skip
-
intercept
intercept the given command request, and return a command response- 参数:
request- commandRequestexecution- interceptor chain execution- 返回:
- command response
-