Package org.qubership.atp.dataset.db
Class DataSetListTreeRepository.ToLoadLater
java.lang.Object
org.qubership.atp.dataset.db.utils.StrongIdentifiedCache
org.qubership.atp.dataset.db.DataSetListTreeRepository.ToLoadLater
- All Implemented Interfaces:
IdentifiedCache
- Enclosing class:
DataSetListTreeRepository
Does not take any items from backing cache. Puts newly created items into backing cache.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedToLoadLater(DataSetListTreeRepository repo, IdentifiedCache cache) -
Method Summary
Modifier and TypeMethodDescription<T extends Identified>
TcomputeIfAbsent(Class<T> type, UUID id, Function<UUID, ? extends T> sourceFunc) Returns value if it is already present in the cache.provideAttr(UUID dslId, UUID attrId) provideDslRef(UUID dslId) provideDsRef(UUID dslId, UUID dsId) <T extends Identified>
voidMethods inherited from class org.qubership.atp.dataset.db.utils.StrongIdentifiedCache
clear, equals, getIfPresent, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.qubership.atp.dataset.db.IdentifiedCache
tryComputeIfAbsent
-
Constructor Details
-
ToLoadLater
-
-
Method Details
-
provideDsRef
-
provideDslRef
-
provideAttr
-
computeIfAbsent
@Nonnull public <T extends Identified> T computeIfAbsent(@Nonnull Class<T> type, @Nonnull UUID id, @Nonnull Function<UUID, ? extends T> sourceFunc) Description copied from interface:IdentifiedCacheReturns value if it is already present in the cache. Invokes function otherwise. Function should not return null. Caches new provided value.- Specified by:
computeIfAbsentin interfaceIdentifiedCache- Overrides:
computeIfAbsentin classStrongIdentifiedCache
-
put
- Specified by:
putin interfaceIdentifiedCache- Overrides:
putin classStrongIdentifiedCache
-