org.pasoa.common
Interface Cache
- All Known Subinterfaces:
- BackendStore, StorageSystem
- All Known Implementing Classes:
- BerkeleyDBJEStorage, GeneralStorageSystem, MemoryStorage
- public interface Cache
A cache used by the dispatcher. Implementations of the the interface
must be thread safe.
- Author:
- pgroth
cacheEnabled
boolean cacheEnabled()
cache
void cache(CacheableItem ci)
throws Exception
- Throws:
Exception
getCachedItem
CacheableItem getCachedItem()
throws Exception
- Returns some item that has been cached.
No order is guranteed. Returns null if there are no CachableItems
left in the cache.
!!! When a cached item is gotten from the cache, it is removed
from the cache and not longer exists there.
- Returns:
-
- Throws:
Exception