Class ConnectedContractCacheOperation
java.lang.Object
es.kukenan.smartfi.microservice.contracts.cache.ConnectedContractCacheOperation
Operation over contract cache.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheOperationsContract(List<SessionCacheOperationEnum> operations, String uuid, Object obj) Contract cache operations.voidclear()clear contract Cache object.booleanexistsConnectedContractInCache(String sessionId) exists connected contract object.getting all Cache object.insertContractCache(ContractCache contractCache) getting all Cache object.refreshContractCache(String sessionId) refresh contract Cache object.
-
Field Details
-
connectedContractUuidSession
map contract-uuid-session cache established. -
connectedContractTimeToLive
ttl contract time-to-live established. -
hazelcastInstance
@Autowired private com.hazelcast.core.HazelcastInstance hazelcastInstanceHazelcastInstance hazelcastInstance.
-
-
Constructor Details
-
ConnectedContractCacheOperation
public ConnectedContractCacheOperation()
-
-
Method Details
-
cacheOperationsContract
public void cacheOperationsContract(List<SessionCacheOperationEnum> operations, String uuid, Object obj) Contract cache operations.- Parameters:
operations- to be executeduuid- key of the registryobj- to be saved
-
insertContractCache
getting all Cache object.- Parameters:
contractCache- value of the registry- Returns:
- ContractCacheDto
-
getAllInformationByUuid
getting all Cache object.- Parameters:
uuid- key of the registry- Returns:
- uuidCache object
-
existsConnectedContractInCache
exists connected contract object.- Parameters:
sessionId- session identifier- Returns:
- boolean
-
refreshContractCache
refresh contract Cache object.- Parameters:
sessionId- session identifier- Returns:
- ContractCacheDto
-
clear
public void clear()clear contract Cache object.
-