Class CacheAccessTracker<K,V>
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.CacheAccessTracker<K,V>
-
-
Constructor Summary
Constructors Constructor Description CacheAccessTracker(@NotNull String name, @NotNull org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider, @NotNull Cache<K,V> delegate)
Create a new wrapper exposing the access statistics under the givenname
to the passedstatisticsProvider
.
-
-
-
Constructor Detail
-
CacheAccessTracker
public CacheAccessTracker(@NotNull @NotNull String name, @NotNull @NotNull org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider, @NotNull @NotNull Cache<K,V> delegate)
Create a new wrapper exposing the access statistics under the givenname
to the passedstatisticsProvider
.- Parameters:
name
- name under which to expose the access statisticsstatisticsProvider
- statistics provider where the access statistics is recorded todelegate
- the underlying, wrapped cache.
-
-
Method Detail
-
put
public void put(@NotNull K key, @NotNull V value)
Description copied from interface:Cache
Add a mapping fromkey
tovalue
.
-
put
public void put(@NotNull K key, @NotNull V value, byte cost)
Description copied from interface:Cache
Add a mapping fromkey
tovalue
with a givencost
.
-
-