Class AbstractKeyGenerator
java.lang.Object
es.kukenan.smartfi.microservice.contracts.cache.AbstractKeyGenerator
- All Implemented Interfaces:
org.springframework.cache.interceptor.KeyGenerator
- Direct Known Subclasses:
InternalProductKeyGenerator,MovementsKeyGenerator,ProductsKeyGenerator
public abstract class AbstractKeyGenerator
extends Object
implements org.springframework.cache.interceptor.KeyGenerator
Class in charge to generated a customized key.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringgenerateBaseKey(String path, Object... params) Generate base key.abstract intGet the initial position to obtain params.
-
Field Details
-
requestParams
optional Params cache key. -
path
url base.
-
-
Constructor Details
-
AbstractKeyGenerator
-
-
Method Details
-
generate
- Specified by:
generatein interfaceorg.springframework.cache.interceptor.KeyGenerator
-
generateBaseKey
Generate base key.- Parameters:
path- path baseparams- parameters list- Returns:
- the base key
-
getInitialPosition
public abstract int getInitialPosition()Get the initial position to obtain params.- Returns:
- the initial position
-