public class ExpiringValueCache<T> extends Object implements 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(T value)
value
- The object to store in the cachepublic T get()
public void clear()
Copyright © 2005–2015 Alfresco Software. All rights reserved.