biz.hammurapi.cache
Class AppendableMemoryCache
java.lang.Object
biz.hammurapi.cache.AbstractProducer
biz.hammurapi.cache.MemoryCache
biz.hammurapi.cache.AppendableMemoryCache
- All Implemented Interfaces:
- AppendableCache, Cache, Producer, Component
public class AppendableMemoryCache
- extends MemoryCache
- implements AppendableCache
Cache which supports addition of entries.
- Author:
- Pavel Vlasov
Method Summary |
java.lang.Object |
add(java.lang.Object value,
long time,
long expirationTime)
Add new value to the cache |
Methods inherited from class biz.hammurapi.cache.MemoryCache |
clear, finalize, get, isActive, keySet, put, remove, remove, setOwner, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppendableMemoryCache
public AppendableMemoryCache(AppendableProducer producer,
Cache fallBack,
MeasurementCategory measurementCategory)
AppendableMemoryCache
public AppendableMemoryCache(AppendableProducer producer,
Cache fallBack,
MeasurementCategory measurementCategory,
java.util.Timer timer,
long cleanupInterval)
add
public java.lang.Object add(java.lang.Object value,
long time,
long expirationTime)
- Description copied from interface:
AppendableCache
- Add new value to the cache
- Specified by:
add
in interface AppendableCache
time
- Time when entry was placed to the cacheexpirationTime
- Expiration time
- Returns:
- key for the value
Copyright © 2003 Hammurapi Group. All Rights Reserved.