com.ibm.websphere.command
Interface CommandIdGenerator
- public interface CommandIdGenerator
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
Modifier and Type | Method and Description |
---|---|
|
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