类 FixedKeyGenerator

java.lang.Object
cn.taketoday.retry.interceptor.FixedKeyGenerator
所有已实现的接口:
MethodArgumentsKeyGenerator

public class FixedKeyGenerator extends Object implements MethodArgumentsKeyGenerator
从以下版本开始:
4.0
作者:
Dave Syer
  • 字段详细资料

    • label

      private final String label
  • 构造器详细资料

    • FixedKeyGenerator

      public FixedKeyGenerator(String label)
  • 方法详细资料

    • getKey

      public Object getKey(Object[] item)
      从接口复制的说明: MethodArgumentsKeyGenerator
      Get a unique identifier for the item that can be used to cache it between calls if necessary, and then identify it later.
      指定者:
      getKey 在接口中 MethodArgumentsKeyGenerator
      参数:
      item - the current method arguments (may be null if there are none).
      返回:
      a unique identifier.