@FunctionalInterface public interface InvokerFilter
Filter 同等作用。| 限定符和类型 | 方法和说明 |
|---|---|
default void |
destroy()
销毁过滤器。
|
Object |
doInvoke(Invoker invoker,
InvokerChain chain)
指定过滤器
|
default void |
init(InvokerConfig config)
初始化过滤器
|
default void init(InvokerConfig config) throws Throwable
config - 配置信息Throwable - 初始化过程中发生异常。Object doInvoke(Invoker invoker, InvokerChain chain) throws Throwable
invoker - 当前请求信息chain - 过滤器链Throwable - 执行过滤器中发生的异常。default void destroy()
Copyright © 2020. All rights reserved.