public interface CacheableCommand extends TargetableCommand, CommandCaller
serialVersionUID
Modifier and Type | Method and Description |
---|---|
boolean |
executeFromCache()
executeFromCache This method will check the cache to see if the
given command is present.
|
CommandCaller |
getCaller()
Returns the object that called this command instance.
|
com.ibm.websphere.cache.EntryInfo |
getEntryInfo()
This gets the EntryInfo object for this command, which
holds caching metadata.
|
java.lang.String |
getId()
This gets the cache id for the command.
|
int |
getSharingPolicy()
This gets the sharing policy that dictates how distributed caching
is managed.
|
void |
postExecute()
Allows the command writer to perform actions on the cache
after the execution, and potential caching, of the command.
|
boolean |
preExecute()
Allows the command writer to perform actions on the cache
prior to the execution, and potential caching, of the command.
|
void |
setCaller(CommandCaller caller)
This sets the caller object for a caller who is cached.
|
void |
updateCache()
This method will cause the current command to be placed into the cache.
|
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
execute, isReadyToCallExecute, reset
unionDependencies
java.lang.String getId()
int getSharingPolicy()
com.ibm.websphere.cache.EntryInfo getEntryInfo()
boolean preExecute()
void postExecute()
void setCaller(CommandCaller caller)
The caller of a command must call this method on the command some time after creating the new command instance, but before calling the execute() method.
caller
- The command that called this command.CommandCaller getCaller()
boolean executeFromCache() throws CommandException
CommandException
void updateCache()