Interface OracleCacheStatsRepository

All Superinterfaces:
io.micronaut.data.repository.CrudRepository<CacheStatsEntity, String>, io.micronaut.data.repository.GenericRepository<CacheStatsEntity, String>

@JdbcRepository(dialect=ORACLE, dataSource="${micronaut.oracle.cache.datasource}") public interface OracleCacheStatsRepository extends io.micronaut.data.repository.CrudRepository<CacheStatsEntity, String>
Repository for lightweight cache statistics rows.
Since:
6.2.0
Author:
Davide Cocco
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    updateStats(String cacheName, long hitDelta, long missDelta, long putDelta, long invalidateDelta, Instant updatedAt)
    Applies cache statistics deltas.

    Methods inherited from interface io.micronaut.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findById, insert, insertAll, save, saveAll, update, updateAll
  • Method Details

    • updateStats

      void updateStats(String cacheName, long hitDelta, long missDelta, long putDelta, long invalidateDelta, Instant updatedAt)
      Applies cache statistics deltas.
      Parameters:
      cacheName - The cache name
      hitDelta - The cache hit count delta
      missDelta - The cache miss count delta
      putDelta - The cache put count delta
      invalidateDelta - The cache invalidation count delta
      updatedAt - The update timestamp