|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The CacheableCommand interface provides the contract between the client and the command implementation for those commands that participate in the command caching framework. It allows caching metadata to be supplied.
Fields inherited from interface com.ibm.websphere.command.Command |
---|
serialVersionUID |
Method Summary | |
---|---|
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. |
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. |
Methods inherited from interface com.ibm.websphere.command.TargetableCommand |
---|
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties |
Methods inherited from interface com.ibm.websphere.command.Command |
---|
execute, isReadyToCallExecute, reset |
Methods inherited from interface com.ibm.websphere.command.CommandCaller |
---|
unionDependencies |
Method Detail |
public java.lang.String getId()
public int getSharingPolicy()
public EntryInfo getEntryInfo()
public boolean preExecute()
public void postExecute()
public 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.public CommandCaller getCaller()
public boolean executeFromCache() throws CommandException
public void updateCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |