org.apache.jetspeed.cache
Interface CacheElement

All Known Subinterfaces:
ContentCacheElement

public interface CacheElement

Provides interface to cached elements Abstraction around atual cache implementation

Version:
$Id: $
Author:
David Sean Taylor

Field Summary
static int ActionAdded
           
static int ActionChanged
           
static int ActionEvicted
           
static int ActionExpired
           
static int ActionRemoved
           
 
Method Summary
 Object getContent()
           
 Object getKey()
           
 int getTimeToIdleSeconds()
           
 int getTimeToLiveSeconds()
           
 boolean isEternal()
           
 void setEternal(boolean eternal)
           
 void setTimeToIdleSeconds(int timeToIdle)
           
 void setTimeToLiveSeconds(int timeToLive)
           
 

Field Detail

ActionAdded

static final int ActionAdded
See Also:
Constant Field Values

ActionChanged

static final int ActionChanged
See Also:
Constant Field Values

ActionRemoved

static final int ActionRemoved
See Also:
Constant Field Values

ActionEvicted

static final int ActionEvicted
See Also:
Constant Field Values

ActionExpired

static final int ActionExpired
See Also:
Constant Field Values
Method Detail

getTimeToIdleSeconds

int getTimeToIdleSeconds()
Returns:
the idle time in seconds for this cache element

getTimeToLiveSeconds

int getTimeToLiveSeconds()
Returns:
the idle time in seconds for this cache element

setTimeToLiveSeconds

void setTimeToLiveSeconds(int timeToLive)

setTimeToIdleSeconds

void setTimeToIdleSeconds(int timeToIdle)

getContent

Object getContent()

getKey

Object getKey()

isEternal

boolean isEternal()

setEternal

void setEternal(boolean eternal)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.