public class ExpiringValueCache
extends java.lang.Object
implements java.io.Serializable
The object placed in the cache will automatically be discarded after a timeout value.
| Constructor and Description |
|---|
ExpiringValueCache()
Default constructor.
|
ExpiringValueCache(long timeout)
Constructor
|
public ExpiringValueCache()
public ExpiringValueCache(long timeout)
timeout - Timeout in milliseconds before cached value is discardedpublic void put(java.lang.Object value)
value - The object to store in the cachepublic java.lang.Object get()
public void clear()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.