|Modifier and Type||Interface and Description|
The interface for the callback objects that
|Modifier and Type||Method and Description|
Try to shrink the cache if it has exceeded its maximum size.
Insert an entry into the
void insertEntry(CacheEntry entry) throws StandardException
ReplacementPolicy's data structure, possibly evicting another entry. The entry should be uninitialized when the method is called (that is, its
null), and it should be locked. When the method returns, the entry may have been initialized with a
Cacheablewhich is ready to be reused. It is also possible that the
nullwhen the method returns, in which case the caller must allocate one itself. The entry will be associated with a
Callbackobject that it can use to communicate back to the replacement policy events (for instance, that it has been accessed or become invalid).
entry- the entry to insert
StandardException- if an error occurs while inserting the entry