IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.command
Interface CommandIdGenerator


public interface CommandIdGenerator

The CommandIdGenerator is responsible for generating cache entry ids and data ids, and invalidating data ids for command objects.

One IdGenerator instance will exist for each cacheable command object identified in WebSphere. When implementing this interface, be aware that multiple threads may be using the same IdGenerator concurrently.


Method Summary
 java.lang.String getId(CacheableCommand command, java.util.ArrayList groupIds)
          This gets the cache id for the command.
 

Method Detail

getId

java.lang.String getId(CacheableCommand command,
                       java.util.ArrayList groupIds)
This gets the cache id for the command. It typically has a simple relationship to the command class and input properties. However, it can involve any logic that can be invoked in the command client's JVM.

Parameters:
command - The command used to generate a cache id
groupIds - Add any additional groupIds to the command using the following ArrayList
Returns:
The cache id or null if the command is not cacheable

IBM WebSphere Application ServerTM
Release 7