|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheableCommand
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.
Field Summary |
---|
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 |
---|
java.lang.String getId()
int getSharingPolicy()
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()
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |