Class ContractCacheOperation
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.cache.ContractCacheOperation
Operation over cache.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheOperations(List<CacheOperationEnum> operations, String id, Object obj) Cache contract.booleanexistsContractInCache(String sessionId) exists contract object.es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractCacheDtogetting all Contract object.es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractCacheDtoinsertContractCache(es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractCacheDto contractCacheDto) insert Cache object.es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractCacheDtorefreshContractCache(String sessionId) refresh contract Cache object.
-
Field Details
-
contractName
map cache.contract cache established. -
timeToLive
time-to-live established. -
hazelcastInstance
@Autowired private com.hazelcast.core.HazelcastInstance hazelcastInstanceHazelcastInstance hazelcastInstance.
-
-
Constructor Details
-
ContractCacheOperation
public ContractCacheOperation()
-
-
Method Details
-
cacheOperations
Cache contract.- Parameters:
operations- to be executedid- key of the registryobj- to be saved
-
getContractInformationByUserSession
public es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractCacheDto getContractInformationByUserSession(String id) getting all Contract object.- Parameters:
id- key of the registry- Returns:
- ContractCacheDto
-
insertContractCache
public es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractCacheDto insertContractCache(es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractCacheDto contractCacheDto) insert Cache object.- Parameters:
contractCacheDto- value of the registry- Returns:
- ContractCacheDto
-
refreshContractCache
public es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractCacheDto refreshContractCache(String sessionId) refresh contract Cache object.- Parameters:
sessionId- session identifier- Returns:
- ContractCacheDto
-
existsContractInCache
exists contract object.- Parameters:
sessionId- session identifier- Returns:
- boolean
-