public class CommandCacheInterceptor extends Object implements CommandInterceptor
| Constructor and Description |
|---|
CommandCacheInterceptor(CommandProperties commandProperties,
CommandCache commandCache,
CommandCacheMapper commandCacheMapper) |
| Modifier and Type | Method and Description |
|---|---|
<R,T> void |
afterSuccessExecute(Command<R,T> command,
R request,
T response)
Invoked after command success executed
|
<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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterFailedExecute, getOrderpublic CommandCacheInterceptor(CommandProperties commandProperties, CommandCache commandCache, CommandCacheMapper commandCacheMapper)
public <R,T> T beforeExecute(Command<R,T> command, R request)
CommandInterceptornull,
command will be executed, if not null
the response will be returned without execute commandbeforeExecute in interface CommandInterceptorR - request typeT - response typecommand - commandrequest - command requestpublic <R,T> void afterSuccessExecute(Command<R,T> command, R request, T response)
CommandInterceptorafterSuccessExecute in interface CommandInterceptorR - request typeT - response typecommand - commandrequest - command requestresponse - command responseCopyright © 2021 Pivotal Software, Inc.. All rights reserved.