net.sf.jportlet.service.cache
Interface Cacheable

All Known Implementing Classes:
CacheableImpl

public interface Cacheable

The Cacheable represents an object that can be inserted into the cache

Author:
Herve Tchepannou

Method Summary
 void expire()
          Force the object to expire
 java.lang.Object getData()
          Returns the data
 java.lang.Object getId()
          Returns if object unique identifier
 boolean isExpired()
          Returns true if the object has expired
 

Method Detail

getData

public java.lang.Object getData()
Returns the data

Returns:
boolean

getId

public java.lang.Object getId()
Returns if object unique identifier

Returns:
Object

isExpired

public boolean isExpired()
Returns true if the object has expired

Returns:
boolean

expire

public void expire()
Force the object to expire



Copyright © 2002 Herve Tchepannou. All Rights Reserved.