biz.hammurapi.cache
Interface AppendableCache

All Superinterfaces:
Cache, Component, Producer
All Known Implementing Classes:
AppendableMemoryCache

public interface AppendableCache
extends Cache

Cache which supports addition of values and returns key for added value.

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 interface biz.hammurapi.cache.Cache
clear, isActive, put, remove, remove
 
Methods inherited from interface biz.hammurapi.cache.Producer
addCache, get, keySet
 
Methods inherited from interface biz.hammurapi.config.Component
setOwner, start, stop
 

Method Detail

add

java.lang.Object add(java.lang.Object value,
                     long time,
                     long expirationTime)
Add new value to the cache

Parameters:
value -
time - Time when entry was placed to the cache
expirationTime - Expiration time
Returns:
key for the value


Copyright © 2003 Hammurapi Group. All Rights Reserved.