Class ContractCacheOperation
java.lang.Object
es.kukenan.smartfi.microservice.contracts.cache.ContractCacheOperation
Operation over contract cache.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheOperationsContract(List<SessionCacheOperationEnum> operations, String userId, Object obj) Contract cache operations.booleanexistsContractInCache(String userId) exists contract object.List<es.kukenan.smartfi.microservice.contracts.api.contract.ContractDto>getAllInformationByUuid(String userId) getting all Cache object.List<es.kukenan.smartfi.microservice.contracts.api.contract.ContractDto>insertContractCache(List<es.kukenan.smartfi.microservice.contracts.api.contract.ContractDto> contracts, String userId) getting all Cache object.List<es.kukenan.smartfi.microservice.contracts.api.contract.ContractDto>refreshContractCache(String userId) refresh contract Cache object.
-
Field Details
-
contractUuidSession
map contract-uuid-session cache established. -
contractTimeToLive
ttl contract time-to-live established. -
hazelcastInstance
@Autowired private com.hazelcast.core.HazelcastInstance hazelcastInstanceHazelcastInstance hazelcastInstance.
-
-
Constructor Details
-
ContractCacheOperation
public ContractCacheOperation()
-
-
Method Details
-
cacheOperationsContract
public void cacheOperationsContract(List<SessionCacheOperationEnum> operations, String userId, Object obj) Contract cache operations.- Parameters:
operations- to be executeduserId- key of the registryobj- to be saved
-
insertContractCache
public List<es.kukenan.smartfi.microservice.contracts.api.contract.ContractDto> insertContractCache(List<es.kukenan.smartfi.microservice.contracts.api.contract.ContractDto> contracts, String userId) getting all Cache object.- Parameters:
contracts- value of the registryuserId- user identifier- Returns:
- ContractCacheDto
-
getAllInformationByUuid
public List<es.kukenan.smartfi.microservice.contracts.api.contract.ContractDto> getAllInformationByUuid(String userId) getting all Cache object.- Parameters:
userId- key of the registry- Returns:
- uuidCache object
-
existsContractInCache
exists contract object.- Parameters:
userId- user identifier- Returns:
- boolean
-
refreshContractCache
public List<es.kukenan.smartfi.microservice.contracts.api.contract.ContractDto> refreshContractCache(String userId) refresh contract Cache object.- Parameters:
userId- user identifier- Returns:
- ContractCacheDto
-