Class InternalProductKeyGenerator

java.lang.Object
es.kukenan.smartfi.microservice.contracts.cache.AbstractKeyGenerator
es.kukenan.smartfi.microservice.contracts.cache.InternalProductKeyGenerator
All Implemented Interfaces:
org.springframework.cache.interceptor.KeyGenerator

public class InternalProductKeyGenerator extends AbstractKeyGenerator
Class in charge to generated a customized key for internal products list.
  • Constructor Details

    • InternalProductKeyGenerator

      public InternalProductKeyGenerator()
      Default constructor.
  • Method Details

    • generateBaseKey

      public String generateBaseKey(String path, Object... params)
      Generate base key for products.
      Specified by:
      generateBaseKey in class AbstractKeyGenerator
      Parameters:
      path - path base
      params - parameters list
      Returns:
      the base key
    • getInitialPosition

      public int getInitialPosition()
      Get the initial position to obtain params for products key.
      Specified by:
      getInitialPosition in class AbstractKeyGenerator
      Returns:
      the initial position