@Service public class TCContextCacheService extends Object
| Constructor and Description |
|---|
TCContextCacheService() |
| Modifier and Type | Method and Description |
|---|---|
void |
evict(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext) |
List<org.qubership.automation.itf.core.model.jpa.context.TcContext> |
getAllTcContexts(String podName) |
org.qubership.automation.itf.core.model.jpa.context.TcContext |
getById(Object contextId) |
long |
getEntryCount() |
long |
getExpirationTime(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext) |
long |
getLastAccess(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext) |
void |
set(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext,
boolean forced)
Set\putIfAbsent to ATP_ITF_TC_CONTEXTS cache.
|
void |
setHazelcastClient(com.hazelcast.core.HazelcastInstance hazelcastClient) |
@Autowired
public void setHazelcastClient(@Qualifier(value="hazelcastClient")
com.hazelcast.core.HazelcastInstance hazelcastClient)
public long getLastAccess(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext)
public long getExpirationTime(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext)
public long getEntryCount()
public org.qubership.automation.itf.core.model.jpa.context.TcContext getById(Object contextId)
public List<org.qubership.automation.itf.core.model.jpa.context.TcContext> getAllTcContexts(String podName)
public void set(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext,
boolean forced)
tcContext - TcContext object.forced - if value is true - this method will use set() without returning old value and serialization,
if it is false - putIfAbsent() method will be used.public void evict(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext)
Copyright © 2025. All rights reserved.