|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.util.ExpiringValueCache
public class ExpiringValueCache
Simple cache of a single Object value.
The object placed in the cache will automatically be discarded after a timeout value.
| Constructor Summary | |
|---|---|
ExpiringValueCache()
Default constructor. |
|
ExpiringValueCache(long timeout)
Constructor |
|
| Method Summary | |
|---|---|
void |
clear()
Clear the cache value |
java.lang.Object |
get()
Get the cached object. |
void |
put(java.lang.Object value)
Put a value into the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpiringValueCache()
public ExpiringValueCache(long timeout)
timeout - Timeout in milliseconds before cached value is discarded| Method Detail |
|---|
public void put(java.lang.Object value)
value - The object to store in the cachepublic java.lang.Object get()
public void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||