org.jtools.cache
Interface Cacheable

All Known Implementing Classes:
CachedObject

public interface Cacheable

 Caching Interface
This interface defines the methods needed for caching of objects.

Version:
$Id: Cacheable.java,v 1.3 2002/08/07 16:51:09 stfndln Exp $
Author:
Stefaan Delanghe (stfndln@yahoo.com)

Method Summary
 java.lang.Object getIdentifier()
          retrieves an identiefer of an cached object
 boolean isExpired()
          checks if cacheable object is expired
 

Method Detail

isExpired

public boolean isExpired()
checks if cacheable object is expired

Returns:
if expired return true otherwise returns false

getIdentifier

public java.lang.Object getIdentifier()
retrieves an identiefer of an cached object

Returns:
Object The cached object