public interface Command<R,T> extends CommandCacheable<R,T>, CommandHelper
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<T> |
execute(R request)
Command logic implementation
|
default reactor.core.publisher.Mono<T> |
fallback(Throwable throwable,
R request)
If
execute(Object) produce error,
this method will executed as fallback method |
default boolean |
validateRequest()
Is request need to be validated before execute command
|
cacheKey, evictKeys, responseClassflux, monoreactor.core.publisher.Mono<T> execute(R request)
request - command requestdefault reactor.core.publisher.Mono<T> fallback(Throwable throwable, R request)
execute(Object) produce error,
this method will executed as fallback methodthrowable - error from execute(Object)request - command requestdefault boolean validateRequest()
Copyright © 2021. All rights reserved.