|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for an entry in the memory cache or disk cache.
For information about the types of caches, see
EbiCacheManager
.
Method Summary | |
String |
getContentKey()
Gets the key of the content stored in this cache entry. |
Object |
getContents()
Gets the content for this cache entry. |
long |
getContentSize()
Gets the size of the content stored in this cache entry. |
int |
getContentType()
Gets the type of the content stored in this cache entry. |
void |
removeEntry()
Removes this cache entry from the cache. |
void |
setContents(Object contents)
Changes the content of this cache entry. |
void |
useEntry()
Marks the cache entry as recently used. |
Method Detail |
public void useEntry()
Director calls this method each time the cache holder reuses this entry.
public void removeEntry()
public long getContentSize()
public int getContentType()
EbiCacheConstants
:
EbiCacheConstants.CACHE_CONTENT_TYPE_TEXT
EbiCacheConstants.CACHE_CONTENT_TYPE_IMAGE
EbiCacheConstants.CACHE_CONTENT_TYPE_OBJECT
public String getContentKey()
public void setContents(Object contents) throws IOException
contents
- An object that contains the content.public Object getContents() throws IOException
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |