ColdBox Platform Version 3.7.0

coldbox.system.cache.policies
Class AbstractEvictionPolicy

WEB-INF.cftags.component
        extended by coldbox.system.cache.policies.AbstractEvictionPolicy
All Implemented Interfaces:
IEvictionPolicy
Direct Known Subclasses:
FIFO , LFU , LIFO , LRU

public abstract class AbstractEvictionPolicy
extends WEB-INF.cftags.component

An abstract CacheBox eviction policy


Constructor Summary
init(any<ICacheProvider> cacheProvider)
          Constructor
 
Method Summary
 void execute()
          Execute the eviction policy on the associated cache
 any<ICacheProvider> getAssociatedCache()
          Get the Associated Cache Provider of type: coldbox
private any getLogger()
          Get a logbox logger for the policy
private any getUtil()
          Create and return a ColdBox utility object
private void processEvictions(any index)
          Abstract processing of evictions
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any<ICacheProvider> cacheProvider)
Constructor

Parameters:
cacheProvider - The associated cache provider of type: coldbox.system.cache.ICacheProvider
Method Detail

execute

public void execute()
Execute the eviction policy on the associated cache

Specified by:
execute in interface IEvictionPolicy

getAssociatedCache

public any<ICacheProvider> getAssociatedCache()
Get the Associated Cache Provider of type: coldbox.system.cache.ICacheProvider

Specified by:
getAssociatedCache in interface IEvictionPolicy

getLogger

private any getLogger()
Get a logbox logger for the policy


getUtil

private any getUtil()
Create and return a ColdBox utility object


processEvictions

private void processEvictions(any index)
Abstract processing of evictions

Parameters:
index - The array of metadata keys used for processing evictions

ColdBox Platform Version 3.7.0