|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.cache.BasicCachePolicy
@NotThreadSafe public class BasicCachePolicy
A basic mutable CachePolicy
implementation.
Constructor Summary | |
---|---|
BasicCachePolicy()
|
|
BasicCachePolicy(long timeToCache,
TimeUnit unit)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
long |
getTimeToLive()
Get the system time in milliseconds before which the node data remains valid. |
CachePolicy |
getUnmodifiable()
|
boolean |
isEmpty()
|
void |
setTimeToLive(long timeToLive,
TimeUnit unit)
Set the time for values and information to live in the cache. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicCachePolicy()
public BasicCachePolicy(long timeToCache, TimeUnit unit)
Method Detail |
---|
public long getTimeToLive()
getTimeToLive
in interface CachePolicy
CachePolicy.getTimeToLive()
public void setTimeToLive(long timeToLive, TimeUnit unit)
timeToLive
- Sets timeToLive to the specified value.unit
- the unit in which the time to live value is definedpublic boolean isEmpty()
public CachePolicy getUnmodifiable()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |