org.tranql.intertxcache
Class LRUCache
java.lang.Object
org.tranql.intertxcache.LRUCache
- All Implemented Interfaces:
- Cache
- public class LRUCache
- extends java.lang.Object
- implements Cache
- Version:
- $Revision: 342 $ $Date: 2006-06-04 00:17:22 +0200 (Sun, 04 Jun 2006) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LRUCache
public LRUCache(int maxSize,
Cache next)
transactionStart
public void transactionStart(javax.transaction.Transaction tx)
throws CacheException
- Specified by:
transactionStart
in interface Cache
- Throws:
CacheException
transactionEnd
public void transactionEnd(javax.transaction.Transaction tx,
int status,
java.util.Collection rows)
throws CacheException
- Specified by:
transactionEnd
in interface Cache
- Throws:
CacheException
put
public void put(javax.transaction.Transaction tx,
CacheRow row)
throws CacheException
- Specified by:
put
in interface Cache
- Throws:
CacheException
set
public void set(javax.transaction.Transaction tx,
CacheRow row,
int[] indices)
throws CacheException
- Specified by:
set
in interface Cache
- Throws:
CacheException
get
public CacheRow get(javax.transaction.Transaction tx,
GlobalIdentity id)
throws CacheException
- Specified by:
get
in interface Cache
- Throws:
CacheException
get
public boolean get(javax.transaction.Transaction tx,
CacheRow target,
int[] indices)
throws CacheException
- Specified by:
get
in interface Cache
- Throws:
CacheException
remove
public void remove(javax.transaction.Transaction tx,
GlobalIdentity id)
throws CacheException
- Specified by:
remove
in interface Cache
- Throws:
CacheException
release
public void release(GlobalIdentity id)
throws CacheException
- Specified by:
release
in interface Cache
- Throws:
CacheException
clean
public void clean()
throws CacheException
- Specified by:
clean
in interface Cache
- Throws:
CacheException
Copyright © -2006 The Codehaus. All Rights Reserved.