Class MovementsKeyGenerator

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

public class MovementsKeyGenerator extends AbstractKeyGenerator
Class in charge to generated a customized key for movements microservice.
  • Constructor Details

    • MovementsKeyGenerator

      public MovementsKeyGenerator()
      Default constructor.
  • Method Details

    • generateBaseKey

      public String generateBaseKey(String path, Object... params)
      Generate base key for movements.
      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 movements key.
      Specified by:
      getInitialPosition in class AbstractKeyGenerator
      Returns:
      the initial position