当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 aspects API Documentation 英文版文档
DistributedTxCache (JBoss Aspects API) - JBoss 4.0.1 sp1 aspects API Documentation 英文版文档
org.jboss.aspects.versioned
Class DistributedTxCache
java.lang.Object
org.jboss.aspects.versioned.DistributedTxCache
- All Implemented Interfaces:
- org.jboss.ha.framework.interfaces.HAPartition.HAPartitionStateTransfer
- public class DistributedTxCache
- extends Object
- implements org.jboss.ha.framework.interfaces.HAPartition.HAPartitionStateTransfer
This is a LRU cache. The TxCache itself is not transactional
but any accesses to objects within the cache ARE transactional.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.jboss.logging.Logger log
lockTimeout
protected long lockTimeout
synchManager
protected DistributedSynchronizationManager synchManager
versionManager
protected DistributedVersionManager versionManager
partitionName
protected String partitionName
partition
protected org.jboss.ha.framework.interfaces.HAPartition partition
cacheName
protected String cacheName
cache
protected org.jboss.aspects.versioned.DistributedTxCache.LRUCache cache
maxSize
protected int maxSize
DistributedTxCache
public DistributedTxCache(int maxSize,
long lockTimeout,
String cacheName)
DistributedTxCache
public DistributedTxCache(int maxSize,
long lockTimeout,
String cacheName,
String pName)
findHAPartitionWithName
protected org.jboss.ha.framework.interfaces.HAPartition findHAPartitionWithName(String name)
throws Exception
- Throws:
Exception
create
public void create()
throws Exception
- Throws:
Exception
start
public void start()
throws Exception
- Throws:
Exception
pullState
protected void pullState()
throws Exception
- Throws:
Exception
_insert
public void _insert(Object key,
Object obj)
insert
public void insert(Object key,
Object obj)
throws Exception
- Throws:
Exception
_remove
public void _remove(Object key)
remove
public void remove(Object key)
_flush
public void _flush()
flush
public void flush(Object key)
get
public Object get(Object key)
getCurrentState
public Serializable getCurrentState()
- Specified by:
getCurrentState
in interface org.jboss.ha.framework.interfaces.HAPartition.HAPartitionStateTransfer
setCurrentState
public void setCurrentState(Serializable newState)
- Specified by:
setCurrentState
in interface org.jboss.ha.framework.interfaces.HAPartition.HAPartitionStateTransfer
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.