info.magnolia.module.cache
Interface BlockingCache

All Superinterfaces:
Cache
All Known Implementing Classes:
EhCacheWrapper

public interface BlockingCache
extends Cache

Marker interface to expose the fact that this cache will block further calls to Cache.get(Object) until an entry is put into the cache. This is mainly use to avoid concurrent caching of the same resources.


Method Summary
 int getBlockingTimeout()
          If the timeout is reached an exception is thrown to unlock the blocked thread (in milliseconds).
 void unlock(Object key)
          Will unlock the key.
 
Methods inherited from interface info.magnolia.module.cache.Cache
clear, get, getName, getSize, hasElement, put, remove
 

Method Detail

unlock

void unlock(Object key)
Will unlock the key.


getBlockingTimeout

int getBlockingTimeout()
If the timeout is reached an exception is thrown to unlock the blocked thread (in milliseconds). This guarantees that not all threads are waiting on a non-available resource.



Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.