Class FixedKeyGenerator

java.lang.Object
org.springframework.retry.interceptor.FixedKeyGenerator
All Implemented Interfaces:
MethodArgumentsKeyGenerator

public class FixedKeyGenerator extends Object implements MethodArgumentsKeyGenerator
Author:
Dave Syer
  • Constructor Details

    • FixedKeyGenerator

      public FixedKeyGenerator(String label)
  • Method Details

    • getKey

      public Object getKey(Object[] item)
      Description copied from interface: MethodArgumentsKeyGenerator
      Get a unique identifier for the item that can be used to cache it between calls if necessary, and then identify it later.
      Specified by:
      getKey in interface MethodArgumentsKeyGenerator
      Parameters:
      item - the current method arguments (may be null if there are none).
      Returns:
      a unique identifier.