| java.lang.Object com.jofti.cache.BaseAdaptor com.jofti.cache.adapter.JBossCacheAdapter
JBossCacheAdapter | public class JBossCacheAdapter extends BaseAdaptor implements CacheAdapter,NameSpacedCacheAdapter,ITransactionAware(Code) | | The adapter is responsible for interaction between the index and JBossCache.
The main difference between JBossCache and the other caches is its use of
transactions. The adapter is responsible for maintaining the transactional
semantics of the index.
author: Steve Woodcock (steve@jofti.com)
version: 1.0
|
Inner Class :class TransactionIndexer implements Synchronization,JBossIndexer | |
Inner Class :class EventListener implements TreeCacheListener | |
Method Summary | |
public IndexQuery | addQuery(String name, IndexQuery query) | protected Object | checkMutable(Object key, Object result) | public void | destroy() | public Object | get(Object key) | public Object | get(Object nameSpace, Object key) | public Object | getCacheImpl() | protected Object | getCacheValue(Object key) | protected Map | getCacheValues(IndexCache cache, Map col, Object nameSpace, IParsedQuery query, ClassIntrospector introspector) | public int | getExpiryTime() | public InternalIndex | getIndex() | public String | getName() | public IndexQuery | getQuery(String name) | public TransactionLevel | getTransactionLevel() | public synchronized void | init(Properties properties) | boolean | isRollback(int status) | public void | put(Object key, Object value) | public void | put(Object nameSpace, Object key, Object value) | public Map | query(IndexQuery query) | public void | remove(Object key) | public void | remove(Object nameSpace, Object key) | public void | removeAll() Remove all elements in the cache, but leave the cache in a useable state. | public void | removeNameSpace(Object nameSpace) Removes the element which matches the namespace. | public void | setCacheImpl(Object cache) | public void | setExpiryTime(int expiryTime) | public void | setInternalIndex(InternalIndex index) | public void | setName(String name) | public void | start() | public String | toString() |
txMgr | javax.transaction.TransactionManager txMgr(Code) | | |
JBossCacheAdapter | public JBossCacheAdapter()(Code) | | |
JBossCacheAdapter | public JBossCacheAdapter(Object cache)(Code) | | |
getExpiryTime | public int getExpiryTime()(Code) | | Returns the expiryTime. |
isRollback | boolean isRollback(int status)(Code) | | |
removeAll | public void removeAll() throws JoftiException(Code) | | Remove all elements in the cache, but leave the cache in a useable state.
throws: CacheException - |
removeNameSpace | public void removeNameSpace(Object nameSpace) throws JoftiException(Code) | | Removes the element which matches the namespace.
If no element matches, nothing is removed and no Exception is thrown.
Parameters: namespace - the namespace to remove throws: CacheException - |
setExpiryTime | public void setExpiryTime(int expiryTime)(Code) | | Parameters: expiryTime - The expiryTime to set. |
|
|