/** * Returns true if this object uses a LIFO algorithm * * @since 5.7 */ public boolean isLIFO() { return this.algorithm.isLIFO(); }
/** * Returns true if this object uses a LIFO algorithm * * @since 5.7 */ public boolean isLIFO() { return this.algorithm.isLIFO(); }
private static void lruUpdateCallback(DiskRecoveryStore recoveryStore) { /* * Used conditional check to see if * if its a LIFO Enabled, * yes then disable lruUpdateCallback() * and called updateStats() * its keep track of actual entries * present in memory - useful when * checking capacity constraint */ try { if (recoveryStore.getEvictionAttributes() != null && recoveryStore.getEvictionAttributes().getAlgorithm().isLIFO()) { ((VMLRURegionMap) recoveryStore.getRegionMap()).updateStats(); return; } // this must be done after releasing synchronization recoveryStore.getRegionMap().lruUpdateCallback(); }catch( DiskAccessException dae) { recoveryStore.handleDiskAccessException(dae); throw dae; } }
private static void lruUpdateCallback(DiskRecoveryStore recoveryStore) { /* * Used conditional check to see if * if its a LIFO Enabled, * yes then disable lruUpdateCallback() * and called updateStats() * its keep track of actual entries * present in memory - useful when * checking capacity constraint */ try { if (recoveryStore.getEvictionAttributes() != null && recoveryStore.getEvictionAttributes().getAlgorithm().isLIFO()) { ((VMLRURegionMap) recoveryStore.getRegionMap()).updateStats(); return; } // this must be done after releasing synchronization recoveryStore.getRegionMap().lruUpdateCallback(); }catch( DiskAccessException dae) { recoveryStore.handleDiskAccessException(dae, true/* stop bridge servers*/); throw dae; } }