@Service public class BoundContextsCacheService extends Object
| Constructor and Description |
|---|
BoundContextsCacheService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bind(String key,
org.qubership.automation.itf.core.model.jpa.context.TcContext context)
Bind the context to the ATP_ITF_TC_CONTEXTS_IDS_BOUND_BY_KEY cache
and also putIfAbsent it to ATP_ITF_TC_CONTEXTS cache only in case the key is added.
|
void |
bind(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext)
Bind the context to the ATP_ITF_TC_CONTEXTS_IDS_BOUND_BY_KEY cache for each key and put (set) context to
ATP_ITF_TC_CONTEXTS cache.
|
org.qubership.automation.itf.core.model.jpa.context.TcContext |
createByKey(String key,
boolean isStub,
BigInteger projectId,
UUID projectUuid) |
org.qubership.automation.itf.core.model.jpa.context.TcContext |
createByKeys(String[] keys,
boolean isStub,
BigInteger projectId,
UUID projectUuid) |
org.qubership.automation.itf.core.model.jpa.context.TcContext |
findByKey(String key,
BigInteger projectId,
UUID projectUuid)
Find TcContext by key in cache.
|
org.qubership.automation.itf.core.model.jpa.context.TcContext |
findByKey(String key,
boolean createIfNotFound,
BigInteger projectId,
UUID projectUuid)
Find TcContextId by key in ATP_ITF_TC_CONTEXTS_IDS_BOUND_BY_KEY cache.
|
org.qubership.automation.itf.core.model.jpa.context.TcContext |
findByKeys(String[] keys,
BigInteger projectId,
UUID projectUuid)
Find TcContext by keys (get context id from ATP_ITF_TC_CONTEXTS_IDS_BOUND_BY_KEY cache
and get context object from ATP_ITF_TC_CONTEXTS).
|
void |
setHazelcastClient(com.hazelcast.core.HazelcastInstance hazelcastClient) |
void |
unbind(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext)
Unbind contexts (evict) from the ATP_ITF_TC_CONTEXTS_IDS_BOUND_BY_KEY cache for each key.
|
@Autowired
public void setHazelcastClient(@Qualifier(value="hazelcastClient")
com.hazelcast.core.HazelcastInstance hazelcastClient)
public void bind(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext)
tcContext - - TcContextpublic boolean bind(String key, org.qubership.automation.itf.core.model.jpa.context.TcContext context)
key - - binding keycontext - - TcContextpublic void unbind(org.qubership.automation.itf.core.model.jpa.context.TcContext tcContext)
tcContext - - TcContextpublic org.qubership.automation.itf.core.model.jpa.context.TcContext findByKey(String key, BigInteger projectId, UUID projectUuid)
key - - String context key in bindingCachepublic org.qubership.automation.itf.core.model.jpa.context.TcContext findByKey(String key, boolean createIfNotFound, BigInteger projectId, @NotNull UUID projectUuid)
key - - String context key in ATP_ITF_TC_CONTEXTS_IDS_BOUND_BY_KEY cache.createIfNotFound - - "true" if you need to create new context if it is not found in cache or "false".projectId - - internal project id.projectUuid - - external project uuid.public org.qubership.automation.itf.core.model.jpa.context.TcContext findByKeys(String[] keys, BigInteger projectId, UUID projectUuid)
keys - keysprojectId - internal projectIdprojectUuid - external project uuidpublic org.qubership.automation.itf.core.model.jpa.context.TcContext createByKey(String key, boolean isStub, BigInteger projectId, UUID projectUuid)
public org.qubership.automation.itf.core.model.jpa.context.TcContext createByKeys(String[] keys, boolean isStub, BigInteger projectId, UUID projectUuid)
Copyright © 2025. All rights reserved.