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

    Modifier and Type
    Method
    Description
    getId(CacheableCommand command, ArrayList groupIds)
    This gets the cache id for the command.
  • Method Details

    • getId

      String getId(CacheableCommand command, 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