public interface CommandInterceptor
extends org.springframework.core.Ordered
| Modifier and Type | Method and Description |
|---|---|
default <R,T> reactor.core.publisher.Mono<Void> |
afterFailedExecute(Command<R,T> command,
R request,
Throwable throwable)
Invoked after command failed executed
|
default <R,T> reactor.core.publisher.Mono<Void> |
afterSuccessExecute(Command<R,T> command,
R request,
T response)
Invoked after command success executed
|
default <R,T> reactor.core.publisher.Mono<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> reactor.core.publisher.Mono<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> reactor.core.publisher.Mono<Void> afterSuccessExecute(Command<R,T> command, R request, T response)
R - request typeT - response typecommand - commandrequest - command requestresponse - command responsedefault <R,T> reactor.core.publisher.Mono<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. All rights reserved.