Search in sources :

Example 1 with CacheInvalidationStats

use of org.apache.jackrabbit.oak.plugins.document.cache.CacheInvalidationStats in project jackrabbit-oak by apache.

the class TimingDocumentStoreWrapper method invalidateCache.

@Override
public CacheInvalidationStats invalidateCache() {
    try {
        long start = now();
        CacheInvalidationStats result = base.invalidateCache();
        updateAndLogTimes("invalidateCache", start, 0, 0);
        return result;
    } catch (Exception e) {
        throw convert(e);
    }
}
Also used : CacheInvalidationStats(org.apache.jackrabbit.oak.plugins.document.cache.CacheInvalidationStats) DocumentStoreException(org.apache.jackrabbit.oak.plugins.document.DocumentStoreException)

Example 2 with CacheInvalidationStats

use of org.apache.jackrabbit.oak.plugins.document.cache.CacheInvalidationStats in project jackrabbit-oak by apache.

the class TimingDocumentStoreWrapper method invalidateCache.

@Override
public CacheInvalidationStats invalidateCache(Iterable<String> keys) {
    try {
        long start = now();
        CacheInvalidationStats result = base.invalidateCache(keys);
        updateAndLogTimes("invalidateCache3", start, 0, 0);
        return result;
    } catch (Exception e) {
        throw convert(e);
    }
}
Also used : CacheInvalidationStats(org.apache.jackrabbit.oak.plugins.document.cache.CacheInvalidationStats) DocumentStoreException(org.apache.jackrabbit.oak.plugins.document.DocumentStoreException)

Aggregations

DocumentStoreException (org.apache.jackrabbit.oak.plugins.document.DocumentStoreException)2 CacheInvalidationStats (org.apache.jackrabbit.oak.plugins.document.cache.CacheInvalidationStats)2