org.xmlecho.palomar.cache
Interface Policy

All Known Implementing Classes:
TTLPolicy

public interface Policy

Interface for all different types of policies. New policies should extend this interface.

See Also:
Object

Method Summary
 java.lang.String getTag()
          An identifier method for each different type of policy
 boolean hasExpired(Holder cacheObject)
          Method for evaluating the existance state in the cache.
 

Method Detail

getTag

public java.lang.String getTag()
An identifier method for each different type of policy


hasExpired

public boolean hasExpired(Holder cacheObject)
Method for evaluating the existance state in the cache. Different types of policies attached to a particular cached object should be in a position to evaluate the life period of that object.

See Also:
Object