Hi,
I am thinking of the possibility of changing the current Filter definition
model to make it totally asynchronous and event-driven. Here’s the detailed
proposal[1]. It’s only a immature idea at present so I am not sure fi it’s good
to have this change yet, especially from the user’s side.
In short, the new Filter would look like:
public interface Filter {
void onSend(Invocation invocation) {
// before invoke, throw exception to terminate
}
void onResponse(Result result, Invoker<?> invoker, Invocation invocation) {
// biz return successfully
}
void onError(Throwable e) throws RpcException{
// biz throw exception
}
}
1. https://github.com/apache/incubator-dubbo/issues/3585
Jun