public interface CommandHandlerInterceptor<R>
SpiLoader,
Spi| Modifier and Type | Method and Description |
|---|---|
CommandResponse<R> |
intercept(CommandRequest request,
CommandRequestExecution<R> execution)
intercept the given command request, and return a command response
|
boolean |
shouldIntercept(String commandName)
whether to intercept the specified command
|
boolean shouldIntercept(String commandName)
commandName - command name, eg. getRulesCommandResponse<R> intercept(CommandRequest request, CommandRequestExecution<R> execution)
request - commandRequestexecution - interceptor chain executionCopyright © 2022 Alibaba Group. All rights reserved.