public interface CommandInterceptor
extends org.springframework.core.Ordered
| 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 int |
getOrder()
Get the order value of this object.
|
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 responsedefault <R,T> void afterFailedExecute(Command<R,T> command, R request, Throwable throwable)
R - request typeT - response typecommand - commandrequest - command requestthrowable - errordefault int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2021 Pivotal Software, Inc.. All rights reserved.