Package org.molgenis.data.cache.l3
Class L3Cache
- java.lang.Object
-
- org.molgenis.data.cache.l3.L3Cache
-
- All Implemented Interfaces:
TransactionListener
@Service public class L3Cache extends Object implements TransactionListener
In-memory Query cache containing Queries and resulting ids from cacheable repositories
-
-
Constructor Summary
Constructors Constructor Description L3Cache(TransactionManager transactionManager, TransactionInformation transactionInformation, io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCommitTransaction(String transactionId)List<Object>get(Repository<Entity> repository, Query<Entity> query)voidlogStatistics()Logs cumulative cache statistics for all known caches.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.molgenis.data.transaction.TransactionListener
commitTransaction, doCleanupAfterCompletion, rollbackTransaction, transactionStarted
-
-
-
-
Constructor Detail
-
L3Cache
public L3Cache(TransactionManager transactionManager, TransactionInformation transactionInformation, io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
-
Method Detail
-
afterCommitTransaction
public void afterCommitTransaction(String transactionId)
- Specified by:
afterCommitTransactionin interfaceTransactionListener
-
logStatistics
@Scheduled(fixedRate=60000L) public void logStatistics()
Logs cumulative cache statistics for all known caches.
-
-