public interface CommandInterceptor
| Modifier and Type | Method and Description |
|---|---|
default <R,T> void |
afterFailedExecute(Command<R,T> command,
R request,
Throwable throwable)
Invoked after command failed executed
|
default <R,T> void |
afterSuccessExecute(Command<R,T> command,
R request,
T response)
Invoked after command success executed
|
default <R,T> T |
beforeExecute(Command<R,T> command,
R request)
Invoked before command executed, if return
null,
command will be executed, if not null
the response will be returned without execute command |
default <R,T> T beforeExecute(Command<R,T> command, R request)
null,
command will be executed, if not null
the response will be returned without execute commandR - request typeT - response typecommand - commandrequest - command requestdefault <R,T> void afterSuccessExecute(Command<R,T> command, R request, T response)
R - request typeT - response typecommand - commandrequest - command requestresponse - command responseCopyright © 2021 Pivotal Software, Inc.. All rights reserved.