- All Known Implementing Classes:
- CachedObject
- public interface Cacheable
Cacheable is the interface that defines which
methods must be implemented by all objects wishing to be placed
in the cache.
|
Method Summary |
int |
getFrequency()
By requiring all objects to determine their own
number of use. |
java.lang.Object |
getIdentifier()
This method will ensure that the caching service
is not responsible for uniquely identifying objects
placed in the cache. |
void |
setFrequency(int frequency)
|
getFrequency
public int getFrequency()
- By requiring all objects to determine their own
number of use.
setFrequency
public void setFrequency(int frequency)
getIdentifier
public java.lang.Object getIdentifier()
- This method will ensure that the caching service
is not responsible for uniquely identifying objects
placed in the cache.